<%--%----%>
<%--Created by IntelliJ IDEA.--%>
<%--User: jiangzhenzhen--%>
<%--Date: 2018/7/18--%>
<%--Time: 15:18--%>
<%--To change this template use File | Settings | File Templates.--%>
<%--&ndash;%&gt;--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/component/common.jsp" %>

<html>
<head>
    <title>骨松管理-骨松档案-病人信息</title>
    <%--<%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>--%>
    <script src="../assets/js/views/vue.min.js"></script>
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap.min.css" type="text/css">
    <%--<link rel="stylesheet" href="${frames}/css/lib/dataTables.bootstrap.css" type="text/css">--%>
    <%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>
    <script type="text/javascript" src="../assets/js/echarts.js"></script>
    <link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">
    <script src="${js}/jquery-1.9.1.min.js"></script>
    <link href="../assets/css/bootstrap-datetimepicker.css" type="text/css">
    <script src="../assets/js/bootstrap-datetimepicker.min.js"></script>
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="../assets/css/bootstrapDatepickr-1.0.0.css">
    <script src="../assets/js/bootstrapDatepickr-1.0.0.min.js"></script>
    <%--<link rel="stylesheet" href="${frames}/css/lib/dataTables.bootstrap.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${newframe}/css/base/base.css" type="text/css">--%>

    <%--<link rel="stylesheet" href="${frames}/css/table.css" type="text/css">--%>

    <link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css">
    <%--<link rel="stylesheet" href="../assets/css/views/modules/_common.scss">--%>
    <%--<link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css" type="text/css">--%>
    <%--<script src="${assets}/js/views/bpAbnormal.js"></script>--%>
    <link rel="stylesheet" href="../assets/css/views/modules/_common.scss">

    <link rel="stylesheet" href="${assets}/css/views/archives/pArchives.css">
    <link rel="stylesheet" href="${assets}/css/views/department/departmentMgr.css">

    <script src="${frames}/Chronic/laydate/laydate.js"></script>
    <script src="${js}/jquery.dataTables.js"></script>
    <style>
        #tablepart5 .dataTables_paginate .current,
        #table3 .dataTables_paginate .active {
            color: #35acfd;
            cursor: default;
            background-color: #ffffff;
            border: none;
        }

        #tablepart5 .dataTables_paginate a,
        #table3 .dataTables_paginate a {
            display: inline-block;
            width: 24px;
            height: 24px;
            border: none;
            color: #333333;
            text-align: center;
        }

        #tablepart5 .pagination .active a,
        #table3 .pagination .active a {
            color: #35acfd;
            cursor: default;
            background-color: #ffffff;
            border: none;
        }

        #bpillness span {
            margin-top: 0 !important;
        }

        .feritin input {
            /*width:20px;*/
            /*height:20px;*/
            vertical-align: middle;
            margin-bottom: 7px;
            display: inline-block !important;
        }

        /*各种历史，默认隐藏*/
        .personHistory {
            display:none;
        }

    </style>
</head>
<body>
<div>
    <%@ include file="../../breadline.jsp" %>
</div>
<div id="main">
    <div style="width:99%;">
        <div>
            <%@ include file="../../personalnews.jsp" %>
        </div>
        <%--建档信息--%>
        <div class="illness"
             style="margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
            <div style="margin-left:19px;">
                <div style="margin-bottom:10px;">
                    <h3 style="display:inline-block;margin-top:20px;">建档信息</h3>
                </div>
                <div id="medicaltable">
                    <table id="example7" class="display" cellspacing="10" width="95%">
                        <thead>
                        <tr style="bordr:none !important;cursor:auto !important">
                            <th>序号</th>
                            <th></th>
                            <th>身份证号</th>
                            <th>疾病分类</th>
                            <th>更新时间</th>
                        </tr>
                        </thead>
                    </table>
                    <p v-show="slide" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>
                </div>
            </div>
        </div>

        <%--四大生命特征--%>
        <%--<div class="illness"--%>
             <%--style="margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">--%>
            <%--<div>--%>
                <%--<div style="margin-left:19px;">--%>
                    <%--<div style="margin-bottom:10px;">--%>
                        <%--<h3 style="display:inline-block;margin-top:20px;">生命特征</h3>--%>
                        <%--<button type="button" class="btn btn-info" @click="addCharacteristics()"--%>
                                <%--style="margin-top:20px;">更多--%>
                        <%--</button>--%>
                        <%--<button type="button" class="btn btn-info" @click="toCharacteristics()"--%>
                                <%--style="margin-right:20px;margin-top:20px;">--%>
                            <%--<img src="../assets/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加--%>
                        <%--</button>--%>
                    <%--</div>--%>
                    <%--<div id="tablev">--%>
                        <%--<table id="example23" class="display" cellspacing="10" width="95%">--%>
                            <%--<thead>--%>
                            <%--<tr>--%>
                                <%--<th>体温</th>--%>
                                <%--<th>脉搏</th>--%>
                                <%--<th>呼吸</th>--%>
                                <%--<th>收缩压</th>--%>
                                <%--<th>舒张压</th>--%>
                                <%--<th>记录时间</th>--%>
                            <%--</tr>--%>
                            <%--</thead>--%>
                        <%--</table>--%>
                      <%--&lt;%&ndash;  <p v-show="slide">暂无数据</p>&ndash;%&gt;--%>
                    <%--</div>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</div>--%>

        <%-- 疾病信息模块 --%>
        <div id="illnessInfo" class="illness active"
             style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
            <div style="margin-left:19px;">
                <h3 style="margin-top:15px;margin-bottom:16px;">疾病信息</h3>
                <%-- 高血压信息 --%>
                <div class="bpinfo" v-show="bpinfo">
                    <div class="test">
                        <div>
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">高血压信息</span>
                            <button type="button" class="btn btn-info" @click="pressure()">
                                <img src="../assets/images/revise.png" alt=""
                                     style="width:16px;vertical-align: middle;"> 修改
                            </button>
                        </div>
                        <div class="feritin">
                            <div>
                                <span class="title" style="color:#a9a9a9;margin-right:55px;">最高血压值</span>
                                <span class="types" style="width:20%">收缩压:
                                        <input type="text" class="form-control" id="highestBpSystolic"
                                               disabled="disabled" onkeyup="value=value.replace(/[^\d.]/g,'')"
                                               style="width:55px;height:25px;" placeholder="">
                                    mmHg
                                    </span>
                                <span class="types" style="width:20%">舒张压:
                                        <input type="text" class="form-control" id="highestBpDiastolic"
                                               disabled="disabled" onkeyup="value=value.replace(/[^\d.]/g,'')"
                                               style="width:55px;height:25px;" placeholder="">
                                        mmHg
                                    </span>
                                <span class="types" style="width:10%;margin-left:30px">
                                    <input type="radio" value="1" name="bpTestPlace" id="bpTestPlace1" onclick="return false">
                                    <label for="bpTestPlace1">诊室</label>
                                </span>
                                <span class="types" style="width:10%">
                                    <input type="radio" value="2" name="bpTestPlace" id="bpTestPlace2" onclick="return false">
                                    <label for="bpTestPlace2">家庭自测</label>
                                </span>
                            </div>
                            <div>
                                <span class="title" style="color:#a9a9a9;margin-right:55px;">高血压分级</span>
                                <span class="types" style="width:10%">
                                    <input type="radio" value="0" name="class" id="gxy1" onclick="return false;">
                                    <label for="gxy1">Ⅰ级</label>
                                </span>
                                <span class="types" style="width:10%">
                                    <input type="radio" value="1" name="class" id="gxy2" onclick="return false;">
                                    <label for="gxy2">Ⅱ级</label>
                                </span>
                                <span class="types" style="width:10%">
                                    <input type="radio" value="2" name="class" id="gxy3" onclick="return false;">
                                    <label for="gxy3">Ⅲ级</label>
                                </span>
                            </div>
                            <div id="bgillness">
                                <span class="title" style="color:#a9a9a9;margin-right:40px;">高血压并发症</span>
                                <span class="ill" style="width:15%">
                                <input type="checkbox" value="" id="r1" onclick="return false;" />
                                <label for="r1">脑血管疾病</label>
                            </span>
                                <span class="ill" style="width:15%">
                                <input type="checkbox" value="" id="r2" onclick="return false;" />
                                <label for="r2">心脏疾病</label>
                            </span>
                                <span class="ill" style="width:15%">
                                <input type="checkbox" value="" id="r3" onclick="return false;" />
                                <label for="r3">肾脏疾病</label>
                            </span>
                                <span class="ill" style="width:15%">
                                <input type="checkbox" value="" id="r4" onclick="return false;" />
                                <label for="r4">血管疾病</label>
                            </span>
                                <span style="position:relative; width:15%" class="ill">
                                <input type="checkbox" value="" id="r5" onclick="return false;" />
                                <label for="r5"
                                       style="position:absolute;line-height:120%;top:5px;">重度高血压<br>视网膜病变</label>
                            </span>
                            </div>
                            <div>
                                <span class="title" style="color:#a9a9a9;margin-right:65px;">生活习惯</span>
                                <span class="live" style="width:25%">
                                    <span>吸烟情况</span>
                                    <input type="radio" value="" name="type" id="s1" onclick="return false;">
                                    <label for="s1">是</label>
                                    <input type="radio" value="" name="type" id="s2" onclick="return false;">
                                    <label for="s2">否</label>
                                </span>
                                <span class="live" style="width:25%">
                                    <span>饮酒情况</span>
                                    <input type="radio" value="" name="yan" id="z1" onclick="return false;">
                                    <label for="z1">是</label>
                                    <input type="radio" value="" name="yan" id="z2" onclick="return false;">
                                    <label for="z2">否</label>
                                </span>
                                <span class="live" style="width:25%">
                                    <span>体力活动</span>
                                    <input type="radio" value="" name="active" id="y1" onclick="return false;">
                                    <label for="y1">有</label>
                                    <input type="radio" value="" name="active" id="y2" onclick="return false;">
                                    <span for="y2">无</span>
                                </span>
                            </div>
                            <div>
                                <span class="title" style="color:#a9a9a9;margin-right:25px;">
                                    是否近两周未检测数据:
                                </span>
                                <span v-if="isCheckBp">是</span>
                                <span v-else>否</span>
                            </div>
                        </div>
                    </div>
                    <div class="test">
                        <div>
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">最后一次血压测试</span>
                            <button type="button" class="btn btn-info" @click="toAddBpInfo()">
                                新增
                            </button>
                        </div>
                        <div class="text_content">
                            <div>
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/ssy.png" alt="">
                            </span>
                                <span class="text_number">收缩压:<span>{{ illness.number1 }}</span>mmHg</span>
                            </div>
                            <div>
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/szy.png" alt="">
                            </span>
                                <span class="text_number">舒张压:<span>{{ illness.number }}</span>mmHg</span>
                            </div>
                        </div>
                    </div>
                    <div class="test" style="border-bottom:1px solid #e6e6e6;">
                        <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">血压趋势</span>
                            <button type="button" class="btn btn-info" @click="Morebp()" v-show="xyqs">更多</button>
                        </div>
                        <div class="mainbar">

                        </div>
                        <p v-show="!mainbar">暂无数据</p>
                    </div>
                </div>
                <%-- 糖尿病信息 --%>
                <div class="xt" v-show="bginfo">
                    <%-- 糖尿病 --%>
                    <div class="test" style="margin-top:30px;">
                        <div>
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">糖尿病信息</span>
                            <button type="button" class="btn btn-info" @click="sugar()">
                                <img src="../assets/images/revise.png" alt=""
                                     style="width:16px;vertical-align: middle;"> 修改
                            </button>
                        </div>
                        <div class="feritin">
                            <div>
                                <span class="title1" style="color:#a9a9a9;margin-right:55px;">糖尿病类型</span>
                                <span class="types">
                                    <input type="radio" value="0" name="class" id="tn1" onclick="return false;">
                                    <label for="tn1">Ⅰ型</label>
                                </span>
                                <span class="types">
                                    <input type="radio" value="1" name="class" id="tn2" onclick="return false;">
                                    <label for="tn2">Ⅱ型</label>
                                </span>
                                <span class="types">
                                    <input type="radio" value="2" name="class" id="tn3" onclick="return false;">
                                    <label for="tn3">糖尿病妊娠</label>
                                </span>
                                <span class="types">
                                    <input type="radio" value="3" name="class" id="tn4" onclick="return false;">
                                    <label for="tn4">妊娠糖尿病</label>
                                </span>
                            </div>
                            <div style="width:100%;overflow:hidden;">
                                <span class="title1" style="color:#a9a9a9;margin-right:40px;">糖尿病并发症</span>
                                <div style="display:inline-block;vertical-align: top;width:75%;" id="bpillness">
                                    <span class="ill1">
                                        <input type="checkbox" value="" id="q1" onclick="return false;" />
                                        <label for="q1">冠心病</label>
                                    </span>
                                    <span class="ill1">
                                        <input type="checkbox" value="" id="q2" onclick="return false;" />
                                        <label for="q2">高血糖</label>
                                    </span>
                                    <span class="ill1">
                                        <input type="checkbox" value="" id="q3" onclick="return false;" />
                                        <label for="q3">高血脂</label>
                                    </span>
                                    <span class="ill1">
                                        <input type="checkbox" value="" id="q4" onclick="return false;" />
                                        <label for="q4">视网膜病变</label>
                                    </span>
                                    <span class="ill1">
                                        <input type="checkbox" value="" id="q5" onclick="return false;" />
                                        <label for="q5">周围神经病变</label>
                                    </span>
                                    <span class="ill1">
                                        <input type="checkbox" value="" id="q6" onclick="return false;" />
                                        <label for="q6">足部病变</label>
                                    </span>
                                    <span class="ill1">
                                        <input type="checkbox" value="" id="q7" onclick="return false;" />
                                        <label for="q7">脑卒中</label>
                                    </span>
                                    <span class="ill1" style="width:30% !important;">
                                        <input type="checkbox" value="" id="q8" onclick="return false;" />
                                        <label for="q8">冠心病(心肌梗塞)</label>
                                    </span>
                                </div>
                            </div>
                            <div>
                                <span class="title" style="color:#a9a9a9;margin-right:25px;">
                                    是否近两周未检测数据:
                                </span>
                                <span v-if="isCheckBf">是</span>
                                <span v-else>否</span>
                            </div>
                        </div>
                    </div>
                    <%-- 血糖 --%>
                    <div class="test">
                        <div>
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">最后一次血糖检测</span>
                            <button type="button" class="btn btn-info" @click="toAddBgInfo()">
                                新增
                            </button>
                        </div>
                        <div class="text_content">
                            <div>
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/kfxt.png" alt="">
                            </span>
                                <span class="text_number">空腹血糖:<span>{{ illness1.number }}</span>mmol/L</span>
                            </div>
                            <div>
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/chxt.png" alt="">
                            </span>
                                <span class="text_number">餐后两小时血糖:<span>{{ illness1.number1 }}</span>mmol/L</span>
                            </div>
                        </div>
                    </div>
                    <div class="test">
                        <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">血糖趋势</span>
                            <button type="button" class="btn btn-info" @click="Morebs()" v-show="xtqs">更多</button>
                        </div>
                        <div class="chart">
                            <p v-show="!chartmain">暂无数据</p>
                        </div>
                    </div>
                </div>
                <%-- 高血脂信息 --%>
                <div class="test" v-show="showbf">
                    <div>
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                        <span class="title">高血脂信息</span>
                        <button type="button" class="btn btn-info" @click="updateBlood()">
                            <img src="../assets/images/revise.png" alt="" style="width:16px;vertical-align: middle;"> 修改
                        </button>
                    </div>
                    <div class="feritin" style="margin-bottom:0px;">
                        <div class="way_content">
                            <div class="firstShow">
                                <span class="title1" style="color: rgb(169, 169, 169);">高血脂分层/分级：</span>
                                <%-- 随访方式 下拉 --%>
                                <input type="text" disabled="disabled" v-model="bfData.bfGrade">
                                <span class="title1" style="color: rgb(169, 169, 169);">确诊时间</span>
                                <%-- 日期选择器 --%>
                                <div class="input-group date form_date" data-date-format="yyyy-mm-dd"
                                     style="display:inline-block !important;">
                                    <input type="text" class="lay-date" disabled="disabled"
                                           v-model="bfData.diagnosisTime" style="width:120px !important">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="feritin fadeContainer" style="margin-top:0px;" v-show="isBfAccompany">
                        <div style="width:100%;overflow:hidden;">
                            <span class="title1 title_xz" style="color:#a9a9a9;">主要症状</span>
                            <div style="display:inline-block;vertical-align: top;width:75%;" id="symptom" ref="symptom">
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="1" id="xz1" onclick="return false;" />
                                    <label for="xz1">头晕头痛</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="2" id="xz2" onclick="return false;" />
                                    <label for="xz2">失眠健忘</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="3" id="xz3" onclick="return false;" />
                                    <label for="xz3">肢体麻木</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="4" id="xz4" onclick="return false;" />
                                    <label for="xz4">胸闷，胸痛，心悸</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="5" id="xz5" onclick="return false;" />
                                    <label for="xz5">心慌，气短</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="6" id="xz6" onclick="return false;" />
                                    <label for="xz6">神疲乏力</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="7" id="xz7" onclick="return false;" />
                                    <label for="xz7">嘴角歪斜，不能说话</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="8" id="xz8" onclick="return false;" />
                                    <label for="xz8">心绞痛</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="symptom" value="9" id="xz8" onclick="return false;" />
                                    <label for="xz8">无</label>
                                </span>
                            </div>
                        </div>

                        <div style="width:100%;overflow:hidden;">
                            <span class="title1 title_xz" style="color:#a9a9a9;">家族史</span>
                            <div style="display:inline-block;vertical-align: top;width:75%;" id="familyHistory"
                                 ref="familyHistory">
                                <span class="ill1">
                                    <input type="checkbox" name="familyHistory" value="1" id="xzkz1"
                                           onclick="return false;" />
                                    <label for="xzjz1">高血脂</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="familyHistory" value="2" id="xzjz2"
                                           onclick="return false;" />
                                    <label for="xzjz2">冠心病</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="familyHistory" value="3" id="xzjz3"
                                           onclick="return false;" />
                                    <label for="xzjz3">脑卒中</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="familyHistory" value="4" id="xzjz4"
                                           onclick="return false;" />
                                    <label for="xzjz4">糖尿病</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="familyHistory" value="5" id="xzjz5"
                                           onclick="return false;" />
                                    <label for="xzjz5">以上都无</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="familyHistory" value="6" id="xzjz6"
                                           onclick="return false;" />
                                    <label for="xzjz6">不详</label>
                                </span>
                                <div class="othernews">
                                    <label>其他</label>
                                    <input type="text" v-model="bfData.otherSymptom" disabled="disabled">
                                </div>
                            </div>
                        </div>

                        <div style="width:100%;overflow:hidden;">
                            <span class="title1 title_xz" style="color:#a9a9a9;">并发症发生情况</span>
                            <div style="display:inline-block;vertical-align: top;width:75%;" id="complication"
                                 ref="complication">
                                <span class="ill1">
                                    <input type="checkbox" name="complication" value="1" id="bfzzk1"
                                           onclick="return false;" />
                                    <label for="bfzzk1">脑卒中</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="complication" value="2" id="bfzzk2"
                                           onclick="return false;" />
                                    <label for="bfzzk2">心肌梗死</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="complication" value="3" id="bfzzk3"
                                           onclick="return false;" />
                                    <label for="bfzzk3">心绞痛</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="complication" value="4" id="bfzzk4"
                                           onclick="return false;" />
                                    <label for="bfzzk4">间接性跛行（肢体活动后疼痛）</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="complication" value="5" id="bfzzk7"
                                           onclick="return false;" />
                                    <label for="bfzzk7">角膜弓</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="complication" value="6" id="bfzzk5"
                                           onclick="return false;" />
                                    <label for="bfzzk5">脂血症眼底改变</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" name="complication" value="7" id="bfzzk6"
                                           onclick="return false;" />
                                    <label for="bfzzk6">无</label>
                                </span>
                                <div class="othernews">
                                    <label>其他</label>
                                    <input type="text" v-model="bfData.otherComplication" disabled="disabled">
                                </div>
                                <div>
                                    <span class="title1" style="margin-right:55px;margin-left:0px;">生活自理能力</span>
                                    <div style="display:inline-block" id="selfCare" ref="selfCare">
                                        <span class="lives">
                                            <input type="radio" value="1" name="class" id="live1" name="selfCare"
                                                   onclick="return false;">
                                            <label for="live1">完全自理</label>
                                        </span>
                                        <span class="lives">
                                            <input type="radio" value="2" name="class" id="live2" name="selfCare"
                                                   onclick="return false;">
                                            <label for="live2">部分自理</label>
                                        </span>
                                        <span class="lives">
                                            <input type="radio" value="3" name="class" id="live3" name="selfCare"
                                                   onclick="return false;">
                                            <label for="live3">完全不能自理</label>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div style="width:100%;overflow:hidden;">
                            <span class="title1 title_xz" style="color:#a9a9a9;">并发症情况</span>
                            <div style="display:inline-block;vertical-align: top;width:75%;" id="complicationSituation"
                                 ref="complicationSituation">
                                <span class="ill1">
                                    <input type="checkbox" value="1" name="complicationSituation" id="bfzqk1"
                                           onclick="return false;" />
                                    <label for="bfzqk1">冠心病</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" value="2" name="complicationSituation" id="bfzqk2"
                                           onclick="return false;" />
                                    <label for="bfzqk2">脑卒中</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" value="3" name="complicationSituation" id="bfzqk3"
                                           onclick="return false;" />
                                    <label for="bfzqk3">糖尿病</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" value="4" name="complicationSituation" id="bfzqk4"
                                           onclick="return false;" />
                                    <label for="bfzqk4">高血压</label>
                                </span>
                                <span class="ill1">
                                    <input type="checkbox" value="5" name="complicationSituation" id="bfzqk5"
                                           onclick="return false;" />
                                    <label for="bfzqk5">以上都无</label>
                                </span>
                            </div>
                        </div>

                        <div style="width:100%;overflow:hidden;">
                            <p class="title1 title_xz" style="color:#a9a9a9;text-align:left;line-height:40px;">
                                用药情况(药名，剂量，用法)</p>
                            <textarea name="" id="" cols="30" rows="10"
                                      style="height:120px;border:1px solid #d0d0d0;width:70%;margin-left:10px;text-indent:10px;"
                                      v-model="bfData.medicalMsg" disabled="disabled"></textarea>
                        </div>

                        <div style="width:100%;overflow:hidden;">
                            <p class="title1 title_xz"
                               style="color:#a9a9a9;text-align:left;line-height:40px;margin-bottom:0px;">因素及控制情况</p>
                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">高脂饮食</span>
                                <div style="display:inline-block" id="bffood" ref="bffood">
                                    <span class="lives">
                                        <input type="radio" value="1" name="bffood" id="gzys1" onclick="return false;">
                                        <label for="gzys1">经常</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="bffood" id="gzys2" onclick="return false;">
                                        <label for="gzys2">偶尔</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="3" name="bffood" id="gzys3" onclick="return false;">
                                        <label for="gzys3">从不</label>
                                    </span>
                                </div>
                            </div>
                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">吸烟情况</span>
                                <div style="display:inline-block" id="bfsmoke" ref="bfsmoke">
                                    <span class="lives">
                                        <input type="radio" value="1" name="bfsmoke" id="smoke1"
                                               onclick="return false;">
                                        <label for="smoke1">吸烟</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="bfsmoke" id="smoke2"
                                               onclick="return false;">
                                        <label for="smoke2">戒烟</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="3" name="bfsmoke" id="smoke3"
                                               onclick="return false;">
                                        <label for="smoke3">不吸</label>
                                    </span>
                                </div>
                            </div>
                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">饮酒情况</span>
                                <div style="display:inline-block" id="bfdrink" ref="bfdrink">
                                    <span class="lives">
                                        <input type="radio" value="1" name="bfdrink" id="yjqk1" onclick="return false;">
                                        <label for="yjqk1">经常</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="bfdrink" id="yjqk2" onclick="return false;">
                                        <label for="yjqk2">偶尔</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="3" name="bfdrink" id="yjqk3" onclick="return false;">
                                        <label for="yjqk3">不饮</label>
                                    </span>
                                </div>
                            </div>
                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">体育锻炼</span>
                                <div style="display:inline-block" id="bfsports" ref="bfsports">
                                    <span class="lives">
                                        <input type="radio" value="1" name="bfsports" id="tydl1"
                                               onclick="return false;">
                                        <label for="tydl1">规律</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="bfsports" id="tydl2"
                                               onclick="return false;">
                                        <label for="tydl2">偶尔</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="3" name="bfsports" id="tydl3"
                                               onclick="return false;">
                                        <label for="tydl3">不锻炼</label>
                                    </span>
                                </div>
                            </div>
                        </div>

                        <div style="width:100%;overflow:hidden;">
                            <p class="title1 title_xz" style="color:#a9a9a9;text-align:left;line-height:40px;">
                                最后一次检查结果</p>
                            <div style="margin-left:90px;">
                                <div class="sign_content third">
                                    <div>
                                        <label for="">身高：</label>
                                        <input type="text" class="height form-control" v-model="bfData.height"
                                               disabled="disabled">
                                        <span style="left:105px;">cm</span>
                                    </div>
                                    <div>
                                        <label for="">体重：</label>
                                        <input type="text" class="weightGuide form-control weight"
                                               v-model="bfData.weight" disabled="disabled">
                                        <span style="left:105px;">kg</span>
                                    </div>
                                    <div>
                                        <label for="">体脂指数：</label>
                                        <input type="text" class="bmi form-control" v-model="bfData.bmi"
                                               disabled="disabled">
                                        <span style="left:90px;">kg/m²</span>
                                    </div>
                                </div>
                                <div class="sign_content third">
                                    <div>
                                        <label for="">腰围：</label>
                                        <input type="text" class="waistline form-control" v-model="bfData.waistline"
                                               disabled="disabled">
                                        <span style="left:105px;">cm</span>
                                    </div>
                                    <div>
                                        <label for="">心率：</label>
                                        <input type="text" class="pul form-control" v-model="bfData.pul"
                                               disabled="disabled">
                                        <span style="left:95px;">次/分</span>
                                    </div>
                                    <div style="width:200px;">
                                        <label for="">空腹血糖：</label>
                                        <input type="text" class="bloodSugar form-control" v-model="bfData.bloodSugar"
                                               disabled="disabled">
                                        <span style="left:80px;">mmol/L</span>
                                    </div>
                                    <div style="width:195px;">
                                        <label for="">收缩压：</label>
                                        <input type="text" class="lowPressure form-control" v-model="bfData.lowPressure"
                                               disabled="disabled">
                                        <span style="left:85px;">mmHg</span>
                                    </div>
                                    <div>
                                        <label for="">舒张压：</label>
                                        <input type="text" class="highPressure form-control"
                                               v-model="bfData.highPressure" disabled="disabled">
                                        <span style="left:83px;">mmHg</span>
                                    </div>
                                </div>
                                <div class="sign_content third">
                                    <div style="width:200px;">
                                        <label for="">甘油三酯：</label>
                                        <input type="text" class="triglyceride form-control"
                                               v-model="bfData.triglyceride" disabled="disabled">
                                        <span style="left:80px;">mmol/L</span>
                                    </div>
                                    <div style="width:200px;">
                                        <label for="">总胆固醇：</label>
                                        <input type="text" class="cholesterol form-control" v-model="bfData.cholesterol"
                                               disabled="disabled">
                                        <span style="left:80px;">mmol/L</span>
                                    </div>
                                    <div style="width:200px;">
                                        <label for="">低密度胆固醇：</label>
                                        <input type="text" class="lowCholesterol form-control"
                                               v-model="bfData.lowCholesterol" disabled="disabled">
                                        <span style="left:77px;">mmol/L</span>
                                    </div>
                                </div>
                                <div class="sign_content third">
                                    <div style="width:230px;">
                                        <label for="">高密度胆固醇：</label>
                                        <input type="text" class="highCholesterol form-control"
                                               v-model="bfData.highCholesterol" disabled="disabled">
                                        <span style="left:77px;">mmol/L</span>
                                    </div>
                                </div>
                                <div class="othernews">
                                    <label style="margin-left:15px;">其他</label>
                                    <input type="text" v-model="bfData.otherIll" disabled="disabled">
                                </div>
                            </div>
                        </div>
                        <div class="othernews">
                            <p class="title1 title_xz" style="text-align:left;line-height:40px;">诊断时检测情况</p>
                            <textarea name="" id="" cols="30" rows="10"
                                      style="height:120px;border:1px solid #d0d0d0;width:70%;margin-left:10px;text-indent:10px;"
                                      v-model="bfData.proposal" disabled="disabled"></textarea>
                        </div>
                        <div style="width:100%;overflow:hidden;">
                            <p class="title1 title_xz" style="color:#a9a9a9;text-align:left;line-height:40px;">
                                诊断时血脂情况</p>
                            <div style="margin-left:90px;">
                                <div class="sign_content third">
                                    <div style="width:200px">
                                        <label for="">甘油三酯：</label>
                                        <input type="text" class="diagTriglyceride form-control"
                                               v-model="bfData.diagTriglyceride" disabled="disabled">
                                        <span style="left:78px;">mmol/L</span>
                                    </div>
                                    <div style="width:200px;">
                                        <label for="">总胆固醇：</label>
                                        <input type="text" class="diagCholesterol form-control"
                                               v-model="bfData.diagCholesterol" disabled="disabled">
                                        <span style="left:80px;">mmol/L</span>
                                    </div>
                                    <div>
                                        <label for="">低密度胆固醇：</label>
                                        <input type="text" class="diagLowCholesterol form-control"
                                               v-model="bfData.diagLowCholesterol" disabled="disabled">
                                        <span style="left:80px;">mmol/L</span>
                                    </div>
                                </div>
                                <div class="sign_content third">
                                    <div style="width:250px;">
                                        <label for="">高密度胆固醇：</label>
                                        <input type="text" class="diagHighCholesterol form-control"
                                               v-model="bfData.diagHighCholesterol" disabled="disabled">
                                        <span style="left:80px;">mmol/L</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style="width:100%;overflow:hidden;">
                            <p class="title1 title_xz" style="color:#a9a9a9;text-align:left;line-height:40px;">
                                高血脂膳食评价表</p>
                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">您近一周吃肉是否<75g/d?</span>
                                <div style="display:inline-block" id="meat" ref="meat">
                                    <span class="lives">
                                        <input type="radio" value="0" name="meat" id="isMeat1" onclick="return false;">
                                        <label for="isMeat1">否=0</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="1" name="meat" id="isMeat2" onclick="return false;">
                                        <label for="isMeat2">是=1</label>
                                    </span>
                                </div>
                            </div>
                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">您吃的肉是什么种类</span>
                                <div style="display:inline-block" ref="meatType" id="meatType">
                                    <span class="lives">
                                        <input type="radio" value="0" name="meatType" id="whatMeat1"
                                               onclick="return false;">
                                        <label for="whatMeat1">瘦肉=0</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="1" name="meatType" id="whatMeat2"
                                               onclick="return false;">
                                        <label for="whatMeat2">肥瘦肉=1</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="meatType" id="whatMeat3"
                                               onclick="return false;">
                                        <label for="whatMeat3">肥肉=2</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="3" name="meatType" id="whatMeat4"
                                               onclick="return false;">
                                        <label for="whatMeat4">内脏=3</label>
                                    </span>
                                </div>
                            </div>
                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">您近一周吃蛋数量是多少个？</span>
                                <div style="display:inline-block" ref="eggs" id="eggs">
                                    <span class="lives">
                                        <input type="radio" value="1" name="eggs" id="egg1" onclick="return false;">
                                        <label for="egg1">0-3个/周=1</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="eggs" id="egg2" onclick="return false;">
                                        <label for="egg2">2-4个/周=2</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="3" name="eggs" id="egg3" onclick="return false;">
                                        <label for="egg3">7个以上/周=3</label>
                                    </span>
                                </div>
                            </div>
                            <div style="margin-left:90px;">
                                <span class="title1"
                                      style="margin-right:25px;margin-left:0px;">您近一周吃煎炸食品数量（油饼、油条、炸糕等）</span>
                                <div style="display:inline-block" ref="fried" id="fried">
                                    <span class="lives">
                                        <input type="radio" value="0" name="fried" id="muchFood1"
                                               onclick="return false;">
                                        <label for="muchFood1">未吃=0</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="1" name="fried" id="muchFood2"
                                               onclick="return false;">
                                        <label for="muchFood2">1-4次/周=1</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="fried" id="muchFood3"
                                               onclick="return false;">
                                        <label for="muchFood3">5-7次/周=2</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="3" name="fried" id="muchFood4"
                                               onclick="return false;">
                                        <label for="muchFood4">7次以上/周=3</label>
                                    </span>
                                </div>
                            </div>

                            <div style="margin-left:90px;">
                                <span class="title1" style="margin-right:25px;margin-left:0px;">您近一周吃奶油糕点的次数</span>
                                <div style="display:inline-block" ref="cream" id="cream">
                                    <span class="lives">
                                        <input type="radio" value="0" name="cream" id="milk1" onclick="return false;">
                                        <label for="milk1">未吃=0</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="1" name="cream" id="milk2" onclick="return false;">
                                        <label for="milk2">1-4次/周=1</label>
                                    </span>
                                    <span class="lives">
                                        <input type="radio" value="2" name="cream" id="milk3" onclick="return false;">
                                        <label for="milk3">5-7次/周=2</label>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="sign_content">
                            <div class="warn" style="width:100%;">
                                <b style="float:left;margin-right:2%;margin:25px 30px;">
                                    <img src="../assets/images/warn.png" alt="">
                                </b>
                                <p style="height:80px;line-height:80px;text-align:left;">
                                    按实际情况在框里填数，总分<3为合格，总分3～5为轻度膳食不良，总分>6为严重膳食不良</p>
                            </div>
                        </div>
                    </div>
                    <div style="width:30px;margin:20px auto;cursor:pointer">
                        <img src="${assets}/images/fadeOut.png" alt="" v-if="isBfAccompany" @click="fadeShow()">
                        <img src="${assets}/images/fadeIn.png" alt="" v-else @click="fadeShow()">
                    </div>
                </div>
                <div class="bfinfo" v-show="bfinfo">
                    <%-- 血脂 --%>
                    <div class="test">
                        <div>
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">最后一次血脂测试</span>
                            <button type="button" class="btn btn-info" @click="toAddBfInfo()">
                                新增
                            </button>
                        </div>
                        <div class="text_content">
                            <div style="width:33%">
                                <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                    <img src="../assets/images/TC.png" alt="">
                                </span>
                                <span class="text_number" style="vertical-align:middle">TC（高胆固醇）：<span>{{ illness2.number }}</span>mmol/L</span>
                            </div>
                            <div style="width:30%">
                                <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                    <img src="../assets/images/TG.png" alt="">
                                </span>
                                <span class="text_number" style="vertical-align:middle">TG（三酰甘油）：<span>{{ illness2.number1 }}</span>mmol/L</span>
                            </div>
                            <div style="width:auto">
                                <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                    <img src="../assets/images/HDL.png" alt="">
                                </span>
                                <span class="text_number" style="vertical-align:middle">HDL-C（高密度脂蛋白胆固醇）：<span>{{ illness2.number2 }}</span>mmol/L</span>
                            </div>
                            <div style="width:33%">
                                <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                    <img src="../assets/images/LDL.png" alt="">
                                </span>
                                <span class="text_number" style="vertical-align:middle">LDL（低密度脂蛋白胆固醇）：<span>{{ illness2.number3 }}</span>mmol/L</span>
                            </div>
                            <div style="width:30%">
                                <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                    <img src="../assets/images/HCY.png" alt="">
                                </span>
                                <span class="text_number" style="vertical-align:middle">HCY（同型半胱氨酸）：<span>{{ illness2.number4 }}</span>mmol/L</span>
                            </div>
                            <div style="width:auto">
                                <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                    <img src="../assets/images/apoAI.png" alt="">
                                </span>
                                <span class="text_number" style="vertical-align:middle">apoAI（载脂蛋白AI）：<span>{{ illness2.number5 }}</span>mmol/L</span>
                            </div>
                            <div style="width:33%">
                                <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                    <img src="../assets/images/APOB.png" alt="">
                                </span>
                                <span class="text_number" style="vertical-align:middle">apoB（载脂蛋白B）：<span>{{ illness2.number6 }}</span>mmol/L</span>
                            </div>
                        </div>
                    </div>
                    <div class="test">
                        <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                            <span class="title">血脂趋势</span>
                            <button type="button" class="btn btn-info" @click="Morebf()" v-show="xzqs">更多</button>
                        </div>
                        <div class="chart bfchart">
                            <p v-show="!chartBf">暂无数据</p>
                        </div>
                    </div>
                </div>
                <%-- 骨松信息 --%>
                <div class="test" v-show="rarefaction">
                    <div style="margin-left:19px;">
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">主诉</span>
                            <div class="way_content">
                                <div id="blType">
                                    <label for="">骨松分级</label>
                                    <span class="types" style="width:10%">
                                        <input type="radio" value="1" name="blType" id="blType1" v-model="checkData.blType" >
                                        <label for="blType1">普通患者</label>
                                    </span>
                                    <span class="types" style="width:10%">
                                        <input type="radio" value="2" name="blType" id="blType2" v-model="checkData.blType" >
                                        <label for="blType2">高危患者</label>
                                    </span>
                                    <span class="types" style="width:10%">
                                        <input type="radio" value="3" name="blType" id="blType3" v-model="checkData.blType" >
                                        <label for="blType3">确诊患者</label>
                                    </span>
                                </div>
                                <div>
                                    <label for="">患者病症描述：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                              v-model="checkData.msg"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="showToggle" style="width:30px;margin:20px auto;cursor:pointer;height:30px;">
                            <img class="down" src="${assets}/images/fadeOut.png" alt=""  @click="collspseHistory('personHistory')" style="display:none;">
                            <img class="up" src="${assets}/images/fadeIn.png" alt="" @click="collspseHistory('personHistory')">
                        </div>
                        <div class="way personHistory">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">个人史</span>
                            <div class="way_content">
                                <div>
                                    <label for="smoke">是否吸烟：</label>
                                    <select name="smoke" id="smoke" v-model="checkData.smoke">
                                        <option value="">请选择</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                    <label for="drink" style="margin-left:20px;">是否饮酒：</label>
                                    <select name="drink" id="drink" v-model="checkData.drink">
                                        <option value="">请选择</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                    <label for="diet" style="margin-left:20px;">膳食：</label>
                                    <select name="diet" id="diet" v-model="checkData.diet">
                                        <option value="">请选择</option>
                                        <option value="1">普通膳食</option>
                                        <option value="2">治疗膳食</option>
                                        <option value="3">试验膳食</option>
                                        <option value="4">儿科膳食</option>
                                        <option value="5">素食</option>
                                    </select>
                                </div>
                                <div class="feritin fadeContainer" style="margin-top:0px;margin-bottom:0px;">
                                    <div style="width:100%;overflow:hidden;">
                                        <label for="drinkingType" style="margin-top:5px;">饮用类型：</label>
                                        <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                             id="drinkingType" ref="drinkingType">
                                    <span class="ill1" v-for="(item,key) in drinkingType" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId" @click="drinkingTypeCheck(item)" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                    <label for="sleepTime" style="width:160px;">平均每天睡眠时间：</label>
                                    <select name="sleepTime" id="sleepTime" v-model="checkData.sleepTime">
                                        <option value="">请选择</option>
                                        <option value="1">小于5小时</option>
                                        <option value="2">5-6小时</option>
                                        <option value="3">7-8小时</option>
                                        <option value="4">8小时以上</option>
                                    </select>
                                    <label for="sunTime" style="width:160px;margin-left:22px;">平均每天日晒时间：</label>
                                    <select name="sunTime" id="sunTime" v-model="checkData.sunTime">
                                        <option value="">请选择</option>
                                        <option value="1">很少</option>
                                        <option value="2">一般</option>
                                        <option value="3">很多</option>
                                    </select>
                                </div>
                                <div>
                                    <label for="sportTimes" style="width:160px;">平均每周锻炼频率：</label>
                                    <select name="sportTimes" id="sportTimes" v-model="checkData.sportTimes">
                                        <option value="">请选择</option>
                                        <option value="1">小于3次</option>
                                        <option value="2">3-5次</option>
                                        <option value="3">大于5次</option>
                                    </select>
                                    <label for="sportTime" style="width:160px;margin-left:22px;">平均每天锻炼时间：</label>
                                    <select name="sportTime" id="sportTime" v-model="checkData.sportTime">
                                        <option value="">请选择</option>
                                        <option value="1">小于30分钟</option>
                                        <option value="2">30-60分钟</option>
                                        <option value="3">大于60分钟</option>
                                    </select>
                                </div>
                                <%-- 后台未设置参数 --%>
                                <div class="feritin fadeContainer" style="margin-top:0px;margin-bottom:0px;">
                                    <div style="width:100%;overflow:hidden;">
                                        <label style="margin-top:5px">最常用锻炼方式：</label>
                                        <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                             id="sportMode" ref="sportMode">
                                    <span class="ill1" v-for="(item,key) in sportMode" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId" @click="sportModeCheck(item)" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way personHistory">
                            <div class="test" style="margin-top:30px;">
                                <div>
                                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                                    <span class="title">疾病史</span>
                                </div>
                                <div class="feritin">
                                    <div style="width:90%;overflow:hidden;border:1px solid #d0d0d0;margin:20px 0 0 20px;">
                                        <%--<div style="width:100%;overflow:hidden;border-bottom:1px solid #d0d0d0;"
                                             v-for="(item,index) in diagnosticData" :key="index">--%>
                                        <div style="width:100%;overflow:hidden;border-bottom:1px solid #d0d0d0;"
                                             v-for="(item,index) in illnessData" :key="index">
                                            <span class="illnessTitle">{{item.name}}</span>
                                            <div style="display:inline-block;vertical-align: top;width:70%;border-left:1px solid #d0d0d0;padding-left:5%;"
                                                 :ref="item.id">
                                        <span class="ill1" v-for="(listItem,key) in item.list" :key="key"
                                              :name="item.id">
                                            <input type="checkbox" :value="listItem.id" :id="listItem.forId"
                                                   :checked="listItem.checked" :name="item.id"
                                                   @click="rheumatismType(listItem,item.name)" />
                                            <label :for="listItem.forId"
                                                   style="line-height:30px;">{{listItem.name}}</label>
                                        </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way personHistory">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">用药史</span>
                            <div class="way_content">
                                <div>
                                    <label for="drug" style="width:160px;">抗骨质疏松类药物：</label>
                                    <select name="drug" id="drug" v-model="checkData.drug">
                                        <option value="">请选择</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </div>
                                <div>
                                    <label for="hormone" style="width:160px;">肾上腺糖皮质激素：</label>
                                    <select name="hormone" id="hormone" v-model="checkData.hormone">
                                        <option value="">请选择</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </div>
                                <div>
                                    <label for="sexHomone" style="width:160px;">性激素及相关药物：</label>
                                    <select name="sexHomone" id="sexHomone" v-model="checkData.sexHomone">
                                        <option value="">请选择</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </div>
                                <div class="feritin fadeContainer" style="margin-top:0px;margin-bottom:0px;">
                                    <div style="width:100%;overflow:hidden;">
                                        <label style="margin-top:5px;">其他药物使用情况：</label>
                                        <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                             id="otherDrug" ref="otherDrug">
                                   <span class="ill1" v-for="(item,key) in otherDrug" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId" @click="otherDrugCheck(item)" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way personHistory">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">骨折史</span>
                            <div class="way_content">
                                <label for="fracture" style="width:160px;">患者是否骨折过：</label>
                                <select name="fracture" id="fracture" v-model="checkData.fracture">
                                    <option value="">请选择</option>
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </div>
                        </div>
                        <div class="way personHistory">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">手术史</span>
                            <div class="way_content">
                                <div class="feritin fadeContainer" style="margin-top:0px;margin-bottom:0px;">
                                    <div style="width:100%;overflow:hidden;">
                                        <label for="operation" style="margin-top:5px;">手术史：</label>
                                        <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                             id="operation" ref="operation">
                                    <span class="ill1" v-for="(item,key) in operation" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId" @click="operationCheck(item)" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="way personHistory">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">既往史</span>
                            <div class="way_content">
                                <div>
                                    <label for="">健康及疾病情况：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                              v-model="checkData.healthy"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="way personHistory">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">婚育史</span>
                            <div class="way_content">
                                <div>
                                    <label for="">婚姻及生育情况：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                              v-model="checkData.marriage"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="way personHistory">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">家族史</span>
                            <div class="way_content">
                                <div>
                                    <label for="">家族成员发病情况：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                              v-model="checkData.family"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">查体</span>
                            <div class="way_content">
                                <div>
                                    <label for="">身体检查情况：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                              v-model="checkData.body"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="way">
                            <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                            <span class="title">诊断</span>
                            <div class="way_content">
                                <div>
                                    <label for="">判定病症情况：</label>
                                    <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                              v-model="checkData.disease"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="showToggle" style="width:30px;margin:20px auto;cursor:pointer;height:30px;">
                            <img class="down" src="${assets}/images/fadeOut.png" alt=""  @click="collspseHistory('chartData')" style="display:none;">
                            <img class="up" src="${assets}/images/fadeIn.png" alt="" @click="collspseHistory('chartData')">
                        </div>
                        <div class="chartData" style="display:none;">
                            <div class="test">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span class="title">腰椎BMD</span>
                                    <button type="button" class="btn btn-info" @click="addDXAdata()">新增</button>
                                </div>
                                <div class="chart bfchart DXA">
                                    <div v-show="DXA" id="dxaBar" style="width:97%;height:320px;"></div>
                                    <p v-show="DXA">
                                        <img src="../assets/images/BMD.png" alt="" style="vertical-align:middle;">
                                        <span style="margin-left:20px;">BMD（g/cm²）</span>
                                    </p>
                                    <p v-show="!DXA" style="width:100%;text-align:center;line-height:50px;">暂无数据</p>
                                </div>
                            </div>
                            <div class="test">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span class="title">腰椎score</span>
                                    <button type="button" class="btn btn-info" @click="addScoreData()">新增</button>
                                </div>
                                <div class="chart bfchart score">
                                    <div v-show="score" id="scoreBar" style="width:97%;height:320px;"></div>
                                    <p v-show="score">
                                        <img src="../assets/images/BMD.png" alt="" style="vertical-align:middle;">
                                        <span style="margin-left:20px;">T-score</span>
                                    </p>
                                    <p v-show="!score" style="width:100%;text-align:center;line-height:50px;">暂无数据</p>
                                </div>
                            </div>
                            <div class="test">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span class="title">髋部BMD</span>
                                    <button type="button" class="btn btn-info" @click="addDXAdata1()">新增</button>
                                </div>
                                <div class="chart bfchart DXA">
                                    <div v-show="DXA1" id="dxaBar1" style="width:97%;height:320px;"></div>
                                    <p v-show="DXA1">
                                        <img src="../assets/images/BMD.png" alt="" style="vertical-align:middle;">
                                        <span style="margin-left:20px;">BMD（g/cm²）</span>
                                    </p>
                                    <p v-show="!DXA1" style="width:100%;text-align:center;line-height:50px;">暂无数据</p>
                                </div>
                            </div>
                            <div class="test">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span class="title">髋部score</span>
                                    <button type="button" class="btn btn-info" @click="addScoreData1()">新增</button>
                                </div>
                                <div class="chart bfchart score">
                                    <div v-show="score1" id="scoreBar1" style="width:97%;height:320px;"></div>
                                    <p v-show="score1">
                                        <img src="../assets/images/BMD.png" alt="" style="vertical-align:middle;">
                                        <span style="margin-left:20px;">T-score</span>
                                    </p>
                                    <p v-show="!score1" style="width:100%;text-align:center;line-height:50px;">暂无数据</p>
                                </div>
                            </div>
                            <div class="test">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span class="title">前臂BMD</span>
                                    <button type="button" class="btn btn-info" @click="addDXAdata2()">新增</button>
                                </div>
                                <div class="chart bfchart DXA">
                                    <div v-show="DXA2" id="dxaBar2" style="width:97%;height:320px;"></div>
                                    <p v-show="DXA2">
                                        <img src="../assets/images/BMD.png" alt="" style="vertical-align:middle;">
                                        <span style="margin-left:20px;">BMD（g/cm²）</span>
                                    </p>
                                    <p v-show="!DXA2" style="width:100%;text-align:center;line-height:50px;">暂无数据</p>
                                </div>
                            </div>
                            <div class="test" style="padding-bottom: 20px;">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span class="title">前臂score</span>
                                    <button type="button" class="btn btn-info" @click="addScoreData2()">新增</button>
                                </div>
                                <div class="chart bfchart score">
                                    <div v-show="score2" id="scoreBar2" style="width:97%;height:320px;"></div>
                                    <p v-show="score2">
                                        <img src="../assets/images/BMD.png" alt="" style="vertical-align:middle;">
                                        <span style="margin-left:20px;">T-score</span>
                                    </p>
                                    <p v-show="!score2" style="width:100%;text-align:center;line-height:50px;">暂无数据</p>
                                </div>
                            </div>
                            <div>
                                <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                                <span class="title">最后一次骨松测试</span>
                                <button type="button" class="btn btn-info" @click="toAddRarefation()">
                                    新增
                                </button>
                            </div>
                            <div class="text_content">
                                <div style="width:48%;margin-bottom:10px;position:relative;z-index:1;">
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/dlcs.png" alt="">
                            </span>
                                    <span class="text_number dlcs">定量超声：<span>{{ lastTextData.ultrasonic }}</span></span>
                                    <div class="dlcs_text"
                                         style="position:absolute;display:none;z-index:5;verical-align:middle;left:20px;top:30px;width:300px;background:white;border:1px solid #E6E6FA;padding:10px 15px;">
                                        <h5 style="text-align:center;font-size:15px;">注意</h5>
                                        <p style="text-align:left;line-height:20px;font-size:15px;">
                                            正常T值≥-1；低骨量-2.5＜T＜-1；骨质疏松T≤-2.5；严重骨质疏松T≤-2.5并伴有一处或多处骨折</p>
                                    </div>
                                </div>
                                <div style="width:48%;margin-bottom:10px;position:relative;z-index:1;">
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/gmd.png" alt="">
                            </span>
                                    <span class="text_number gmd">骨密度<span>{{ lastTextData.dXA }}</span>
                            <div class="gmd_text"
                                 style="position:absolute;display:none;z-index:5;verical-align:middle;left:20px;top:30px;width:300px;background:white;border:1px solid #E6E6FA;padding:10px 15px;">
                                <h5 style="text-align:center;font-size:15px;">注意</h5>
                                <p style="text-align:left;line-height:20px;font-size:15px;">正常T值≥-1；低骨量-2.5＜T＜-1；骨质疏松T≤-2.5；严重骨质疏松T≤-2.5并伴有一处或多处骨折</p>
                            </div>
                                </div>
                                <div style="width:48%;margin-bottom:10px;position:relative;">
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/P1NP.png" alt="">
                            </span>
                                    <span class="text_number P1NP" style="display:inline-block;">骨转化指标P1NP（1型前胶原氨基端前肽）<span>{{ lastTextData.p1NP }}</span>ng/ml</span>
                                    <div class="P1NP_text"
                                         style="position:absolute;display:none;verical-align:middle;left:20px;top:30px;width:300px;background:white;border:1px solid #E6E6FA;padding:10px 15px;">
                                        <h5 style="text-align:center;font-size:15px;">注意</h5>
                                        <p style="text-align:left;line-height:20px;font-size:15px;">
                                            女性绝经前15.13-58.59ng/ml；女性绝经后16.27-73.87ng/ml</p>
                                    </div>
                                </div>
                                <div style="width:48%;margin-bottom:10px;position:relative;">
                            <span style="width:20px;height:20px;display: inline-block;vertical-align:middle">
                                <img src="../assets/images/ctx.png" alt="">
                            </span>
                                    <span class="text_number ctx">骨转化指标B-CTX(B胶联降解产物)<span>{{ lastTextData.βCTX}}</span>ng/ml</span>
                                    <div class="ctx_text"
                                         style="position:absolute;display:none;verical-align:middle;left:20px;top:30px;width:300px;background:white;border:1px solid #E6E6FA;padding:10px 15px;">
                                        <h5 style="text-align:center;font-size:15px;">注意</h5>
                                        <p style="text-align:left;line-height:20px;font-size:15px;">
                                            男性30-49岁≤0.584ng/ml，50-70岁≤0.704ng/ml，70岁≤0.854ng/ml；女性绝经前≤0.573ng/ml，绝经后≤1.008
                                            ng/ml</p>
                                    </div>
                                </div>
                                <div style="margin-bottom:10px;">
                                    <span>胸腰椎X侧位片结果描述：<span>{{ lastTextData.message }}</span></span>
                                </div>
                            </div>
                            <div class="test">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                                    <span class="title">OSTA分值</span>
                                    <%--<button type="button" class="btn btn-info" @click="MoreOsta()" v-show="xzqs">更多</button>--%>
                                </div>
                                <div class="chart bfchart osta">
                                    <p v-show="!chartOSTA">暂无数据</p>
                                </div>
                            </div>
                            <div class="test">
                                <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                                    <span class="title">骨转换指标</span>
                                    <%--<button type="button" class="btn btn-info" @click="MoreTarget()" v-show="xzqs">更多</button>--%>
                                </div>
                                <div class="chart bfchart gzh">
                                    <p v-show="!chartGzh">暂无数据</p>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <%-- 风险筛查模块 --%>
        <div id="riskScreening" class="illness"
             style="display:none;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
            <div style="margin-left:19px;">
                <h3 style="margin-top:15px;margin-bottom:16px;">风险筛查</h3>
            </div>
            <div style="margin-left:19px;">
                <div class="way" style="margin-bottom:20px;">
                    <button type="button" class="btn btn-info" @click="saveRisk()">
                        <img src="../assets/images/revise.png" alt="" style="width:16px;vertical-align: middle;"> 保存
                    </button>
                </div>
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">一分钟风险测试</span>
                    <div class="way_content">
                        <div>
                            <p>您好！如测试结果有一题回答为“是”，即为阳性，建议双能骨密度（DXA）检测。</p>
                        </div>
                        <div>
                            <label for="humpback">父母中有人驼背：</label>
                            <select name="humpback" id="humpback" ref="humpback" v-model="blData.humpback">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div>
                            <label for="menstruation">女士回答：除了怀孕、绝经或者子宫切除外，是否曾停经超过12个月？：</label>
                            <select name="menstruation" id="menstruation" ref="menstruation"
                                    v-model="blData.menstruation">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div>
                            <label for="estrogen">女士回答：是否在50岁前切除卵巢又没有服用雌/孕激素补充剂？：</label>
                            <select name="estrogen" id="estrogen" ref="estrogen" v-model="blData.estrogen">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div>
                            <label for="androgen">男性回答：是否出现过阳痿、性欲减退或其他雄激素过低的相关症状？：</label>
                            <select name="androgen" id="androgen" ref="androgen" v-model="blData.androgen">>
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div>
                            <label for="sport">每天从事户外活动时间是否少于10分钟，又没有服用维生素D？：</label>
                            <select name="sport" id="sport" v-model="blData.sport">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">超声骨测量</span>
                    <div class="way_content">
                        <div>
                            <label for="check">是否已查：</label>
                            <select name="check" id="check" ref="check" v-model="blData.check">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div>
                            <label>FRAX结果：</label>
                        </div>
                        <div>
                            <label>主要骨质疏松性骨折概率：</label>
                            <input type="text" placeholder="请输入内容" v-model="blData.osteoporosis" maxlength="3"
                                   onkeyup="this.value=this.value.replace(/\s+/g,'')">
                            <label style="margin-left:20px;">髋部骨折概率：</label>
                            <input type="text" placeholder="请输入内容" v-model="blData.fracture" maxlength="3"
                                   onkeyup="this.value=this.value.replace(/\s+/g,'')">
                        </div>
                    </div>
                </div>
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">OSTA计算</span>
                    <div class="way_content">
                        <div>
                            <label>结果≤-1（建议双能骨密度（DXA）检测）</label>
                        </div>
                        <div>
                            <label>OSTA指数=【体质量（kg）-年龄（岁）】*0.2（仅限于女性使用）</label>
                        </div>
                        <div class="tables">
                            <table>
                                <thead>
                                <tr>
                                    <th>
                                        风险级别
                                    </th>
                                    <th>
                                        OSTA
                                    </th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <th>
                                        <p>{{blData.riskLevel}}</p>
                                    </th>
                                    <th>
                                        <p>{{blData.osta}}</p>
                                    </th>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">筛查结果（高危）</span>
                    <div class="way_content">
                        <div>
                            <label for="" style="width:160px;">是否同意下一步诊疗：</label>
                            <select name="diagnosis" id="diagnosis" ref="diagnosis" v-model="blData.diagnosis">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div>
                            <label style="width:160px;">拒绝诊疗原因：</label>
                            <select name="diagnosisMsg" id="diagnosisMsg" v-model="blData.diagnosisMsg">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div style="padding-bottom: 30px;">
                            <label for="advice" style="width:160px;">结论建议：</label>
                            <textarea name="" placeholder="请输入内容" id="advice" cols="30" rows="10"
                                      v-model="blData.advice" style="width:60%"
                                      onkeyup="this.value=this.value.replace(/\s+/g,'')"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <%-- 诊疗信息模块 --%>
        <div id="diagnostic" class="illness"
             style="display:none;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
            <div style="margin-left:19px;">
                <h3 style="margin-top:15px;margin-bottom:16px;">诊疗信息</h3>
            </div>
        </div>
        <%-- 随访模块 --%>
        <div id="accompany" class="illness"
             style="display:none;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
            <div style="margin-left:19px;">
                <h3 style="margin-top:15px;margin-bottom:16px;">随访</h3>
            </div>
            <div style="margin-left:19px;">
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">随诊记录</span>
                    <div class="way_content">
                        <div>
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <%--<label for="">随诊日期：</label>--%>
                                <%--<div style="width:120px;display:inline-block;vertical-align:top;margin-bottom:5px;">--%>
                                <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                                <%--<input v-model="checkData.checkTime" id="checkTime" type="text" class="lay-date" placeholder="  开始日期" readonly>--%>
                                <%--</div>--%>
                                <%--</div>--%>
                                <div style="margin-bottom:0px;">
                                    <label for="">系首诊后：</label>
                                    <input type="text" class="weightGuide form-control weight afterDate"
                                           v-model="blCheckData.afterDate">
                                    <span style="left:105px;">月</span>
                                </div>
                                <label for="checkType">随诊类型：</label>
                                <select name="checkType" id="checkType" v-model="blCheckData.checkType">
                                    <option value="">请选择</option>
                                    <option value="1">按医生随诊</option>
                                    <option value="2">不按医生随诊</option>
                                </select>
                            </div>
                        </div>
                        <div>
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;">
                                    <label for="">身高：</label>
                                    <input type="text" class="height form-control" v-model="blCheckData.height">
                                    <span style="left:100px;">cm</span>
                                </div>
                                <div style="margin-bottom:0px;">
                                    <label for="">体重：</label>
                                    <input type="text" class="weightGuide form-control weight"
                                           v-model="blCheckData.weight">
                                    <span style="left:105px;">kg</span>
                                </div>
                                <div style="margin-bottom:0px;">
                                    <label for="">BMI：</label>
                                    <input type="text" class="bmi form-control" v-model="blBMI">
                                    <span style="left:80px;">kg/m²</span>
                                </div>
                            </div>
                        </div>
                        <div>
                            <label for="">诊疗的诊断结论：</label>
                            <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                      v-model="blCheckData.checkData"></textarea>
                        </div>
                        <div>
                            <label for="">经药物治疗后，症状改善情况：</label>
                            <label for="usdDrug">是否遵医嘱使用药物治疗：</label>
                            <select name="usdDrug" id="usdDrug" v-model="blCheckData.usdDrug">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                        <div style="margin-left:128px;">
                            <label for="waistType">腰背痛：</label>
                            <select name="waistType" id="waistType" v-model="blCheckData.waistType">
                                <option value="">请选择</option>
                                <option value="1">改善</option>
                                <option value="2">改善不明显</option>
                            </select>
                            <label for="waistMsg" style="margin-left:20px;">详述：</label>
                            <input type="text" name="waistMsg" id="waistMsg" v-model="blCheckData.waistMsg">
                        </div>
                        <div style="margin-left:128px;">
                            <label for="boneType">骨痛：</label>
                            <select name="boneType" id="boneType" v-model="blCheckData.boneType">
                                <option value="">请选择</option>
                                <option value="1">改善</option>
                                <option value="2">改善不明显</option>
                            </select>
                            <label for="boneMsg" style="margin-left:20px;">详述：</label>
                            <input type="text" id="boneMsg" name="boneMsg" v-model="blCheckData.boneMsg">
                        </div>
                        <div style="margin-left:128px;">
                            <label for="muscleType">肌肉抽搐：</label>
                            <select name="muscleType" id="muscleType" v-model="blCheckData.muscleType">
                                <option value="">请选择</option>
                                <option value="1">改善</option>
                                <option value="2">改善不明显</option>
                            </select>
                            <label for="muscleMsg" style="margin-left:20px;">详述：</label>
                            <input type="text" name="muscleMsg" id="muscleMsg" v-model="blCheckData.muscleMsg">
                        </div>
                        <div style="margin-left:128px;">
                            <label for="powerType">乏力：</label>
                            <select name="powerType" id="powerType" v-model="blCheckData.powerType">
                                <option value="">请选择</option>
                                <option value="1">改善</option>
                                <option value="2">改善不明显</option>
                            </select>
                            <label for="powerMsg" style="margin-left:20px;">详述：</label>
                            <input type="text" id="powerMsg" name="powerMsg" v-model="blCheckData.powerMsg">
                        </div>
                        <div style="margin-left:128px;">
                            <label for="walkType">行走距离：</label>
                            <select name="walkType" id="walkType" v-model="blCheckData.walkType">
                                <option value="">请选择</option>
                                <option value="1">改善</option>
                                <option value="2">改善不明显</option>
                            </select>
                            <label for="walkMsg" style="margin-left:20px;">详述：</label>
                            <input type="text" id="walkMsg" name="walkMsg" v-model="blCheckData.walkMsg">
                        </div>
                        <div style="margin-left:128px;">
                            <label for="newFracture">自上次就诊后是否有新发骨折：</label>
                            <select name="newFracture" id="newFracture" v-model="blCheckData.newFracture">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="2">否</option>
                            </select>
                        </div>
                        <div style="margin-left:128px;">
                            <label for="walkState">行动状态：</label>
                            <select name="walkState" id="walkState" v-model="blCheckData.walkState">
                                <option value="">请选择</option>
                                <option value="1">独立行走</option>
                                <option value="2">需要仪器协助</option>
                                <option value="3">卧床</option>
                            </select>
                            <label for="standHelp" style="margin-left:20px;">由作为起立时是否需要协助：</label>
                            <select name="standHelp" id="standHelp" v-model="blCheckData.standHelp">
                                <option value="">请选择</option>
                                <option value="1">需要</option>
                                <option value="2">不需要</option>
                            </select>
                        </div>
                        <div>
                            <label for="">其他说明的情况：</label>
                            <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                      v-model="blCheckData.checkOther"></textarea>
                        </div>
                    </div>
                </div>
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">随诊检查记录</span>
                    <div class="way_content">
                        <div class="feritin fadeContainer" style="margin-left: 0;margin-top:0px;margin-bottom:0px;">
                            <div style="width:100%;overflow:hidden;">
                                <label for="checkProject" style="margin-top:5px;">本次检查项目：</label>
                                <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                     id="checkProject" ref="checkProject">
                                    <span class="ill1" v-for="(item,key) in blCheckProject" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId" @click="blCheckProjectCheck(item)" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="feritin fadeContainer" style="margin-left: 0;margin-top:0px;margin-bottom:0px;">
                            <div style="width:100%;overflow:hidden;">
                                <label for="checkProjectNext" style="margin-top:5px;">下次检查项目：</label>
                                <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                     id="checkProjectNext" ref="checkProjectNext">
                                    <span class="ill1" v-for="(item,key) in blCheckProjectNext" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId"
                                               @click="blCheckProjectNextCheck(item)" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-bottom:0px;">
                            <label for="">骨代谢检查</label>
                            <label for="formation" style="margin-left:35px;">骨形成标志物：</label>
                            <select name="formation" id="formation" v-model="blCheckData.formation">
                                <option value="">请选择</option>
                                <option value="1">已查</option>
                                <option value="2">未查</option>
                            </select>
                            <%--<label for="formationTime" style="margin-left:20px;">检查日期：</label>--%>
                            <%--<div style="width:15%;display:inline-block;vertical-align:top;margin-bottom:5px;">--%>
                            <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                            <%--<input id="formationTime" type="text" class="lay-date" placeholder="  开始日期" readonly style="width:100%;" :value="checkData.formationTime">--%>
                            <%--</div>--%>
                            <%--</div>--%>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                <div style="margin-bottom:0px;width:340px;margin-top:20px;">
                                    <label for="formationALP" style="color:#a1a1a1;">血清碱性磷酸酶（ALP）：</label>
                                    <input id="formationALP" type="text" class="height form-control" name="formationALP"
                                           v-model="blCheckData.formationALP">
                                    <span style="left:100px;">U/L</span>
                                </div>
                                <div style="margin-bottom:0px;width:340px;margin-top:20px;;">
                                    <label for="formationBALP" style="color:#a1a1a1;">骨碱性磷酸酶（BALP）：</label>
                                    <input id="formationBALP" type="text" class="weightGuide form-control weight"
                                           name="formationBALP" v-model="blCheckData.formationBALP">
                                    <span style="left:90px;">ug/L</span>
                                </div>
                                <div style="margin-bottom:0px;margin-top:20px;">
                                    <label for="formationOC" style="color:#a1a1a1;">骨钙素（OC）：</label>
                                    <input id="formationOC" type="text" class="bmi form-control" name="formationOC"
                                           v-model="blCheckData.formationOC">
                                    <span style="left:95px;">ug/L</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:375px;">
                                    <label for="formationPICP" style="color:#a1a1a1;">Ⅰ型原胶原C-端前肽（PICP）：</label>
                                    <input id="formationPICP" type="text" class="height form-control"
                                           name="formationPICP" v-model="blCheckData.formationPICP">
                                    <span style="left:80px;">ng/mL</span>
                                </div>
                                <div style="margin-bottom:0px;width:370px;">
                                    <label for="formationPINP" style="color:#a1a1a1;">Ⅰ型原胶原N-端前肽（PINP）：</label>
                                    <input id="formationPINP" type="text" class="weightGuide form-control weight"
                                           name="formationPINP" v-model="blCheckData.formationPINP">
                                    <span style="left:80px;">ng/mL</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;margin-bottom:0px;">
                            <label for="absorb">骨吸收标志物：</label>
                            <select name="absorb" id="absorb" v-model="blCheckData.absorb">
                                <option value="">请选择</option>
                                <option value="1">已查</option>
                                <option value="2">未查</option>
                            </select>
                            <%--<label for="absorbTime" style="margin-left:20px;">检查日期：</label>--%>
                            <%--<div style="width:15%;display:inline-block;vertical-align:top;margin-bottom:5px;">--%>
                            <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                            <%--<input id="absorbTime" type="text" class="lay-date" placeholder="  开始日期" readonly style="width:100%;" v-model="checkData.absorbTime">--%>
                            <%--</div>--%>
                            <%--</div>--%>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                <div style="margin-bottom:0px;width:435px;margin-top:20px;">
                                    <label for="absorbTRACP" style="color:#a1a1a1;">血清抗酒石酸酸性磷酸酶（TRACP) ：</label>
                                    <input id="absorbTRACP" type="text" class="height form-control" name="absorbTRACP"
                                           v-model="blCheckData.absorbTRACP">
                                    <span style="left:100px;">u/L</span>
                                </div>
                                <div style="margin-bottom:0px;width:370px;margin-top:20px;">
                                    <label for="absorbSCTX" style="color:#a1a1a1;">血清Ⅰ型胶原交联C-末端肽（S-CTX）</label>
                                    <input id="absorbSCTX" type="text" class="weightGuide form-control weight"
                                           name="absorbSCTX" v-model="blCheckData.absorbSCTX">
                                    <span style="left:82px;">ng/mL</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:355px;">
                                    <label for="absorbPyr" style="color:#a1a1a1;">尿吡啶咻（Pyr)：</label>
                                    <input id="absorbPyr" type="text" class="height form-control" style="width:190px;"
                                           name="absorbPyr" v-model="blCheckData.absorbPyr">
                                    <span style="left:80px;"> nmol/mmol·Cr</span>
                                </div>
                                <div style="margin-bottom:0px;width:370px;">
                                    <label for="absorbDPyr" style="color:#a1a1a1;">尿脱氧吡啶咻（D-Pyr) ：</label>
                                    <input id="absorbDPyr" type="text" class="weightGuide form-control weight"
                                           style="width:190px;" name="absorbDPyr" v-model="blCheckData.absorbDPyr">
                                    <span style="left:80px;">nmol/mmol·Cr</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:375px;">
                                    <label for="absorbUCTX" style="color:#a1a1a1;">尿Ⅰ型胶原交联C末端肽（U-CTX）：</label>
                                    <input id="absorbUCTX" type="text" class="height form-control" style="width:190px;"
                                           name="absorbUCTX" v-model="blCheckData.absorbUCTX">
                                    <span style="left:90px;">ug/mmol·Cr </span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:480px;">
                                    <label for="absorbUNTX" style="color:#a1a1a1;">尿Ⅰ型胶原交联N末端肽（U-NTX）：</label>
                                    <input id="absorbUNTX" type="text" class="height form-control" style="width:240px;"
                                           name="absorbUNTX" v-model="blCheckData.absorbUNTX">
                                    <span style="left:90px;">nmolBCE/mmol·Cr </span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <label for="metabolize">骨代谢基本检查：</label>
                            <select name="metabolize" id="metabolize" v-model="blCheckData.metabolize">
                                <option value="">请选择</option>
                                <option value="1">已查</option>
                                <option value="2">未查</option>
                            </select>
                            <%--<label for="metabolizeTime" style="margin-left:20px;">检查日期：</label>--%>
                            <%--<div style="width:15%;display:inline-block;vertical-align:top;margin-bottom:5px;">--%>
                            <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                            <%--<input v-model="checkData.metabolizeTime" id="metabolizeTime" type="text" class="lay-date" placeholder="  开始日期" readonly style="width:100%;">--%>
                            <%--</div>--%>
                            <%--</div>--%>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:315px;">
                                    <label for="metabolizePTH" style="color:#a1a1a1;">甲状旁腺素（PTH)：</label>
                                    <input id="metabolizePTH" type="text" class="height form-control"
                                           name="metabolizePTH" v-model="blCheckData.metabolizePTH">
                                    <span style="left:80px;">pg/mL</span>
                                </div>
                                <div style="margin-bottom:0px;width:370px;">
                                    <label for="metabolizeCT" style="color:#a1a1a1;">降钙素（CT）：</label>
                                    <input id="metabolizeCT" type="text" class="weightGuide form-control weight"
                                           name="metabolizeCT" v-model="blCheckData.metabolizeCT">
                                    <span style="left:80px;">ng/mL</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;margin-bottom:0px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:253px;">
                                    <label for="metabolizeCa" style="color:#a1a1a1;">血钙（Ca)：</label>
                                    <input id="metabolizeCa" type="text" class="height form-control" name="metabolizeCa"
                                           v-model="blCheckData.metabolizeCa">
                                    <span style="left:72px;">mmol/L</span>
                                </div>
                                <div style="margin-bottom:0px;">
                                    <label for="metabolizeP" style="color:#a1a1a1;">血磷（P)：</label>
                                    <input id="metabolizeP" type="text" class="height form-control" name="metabolizeP"
                                           v-model="blCheckData.metabolizeP">
                                    <span style="left:72px;">mmol/L</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                <div style="margin-bottom:0px;width:400px;margin-top:20px;">
                                    <label for="metabolize25OHD3" style="color:#a1a1a1;">25-羟维生素D3（25-OH-D3）：</label>
                                    <input id="metabolize25OHD3" type="text" class="height form-control"
                                           style="width:150px;" name="metabolize25OHD3"
                                           v-model="blCheckData.metabolize25OHD3">
                                    <span style="left:90px;">ng/ml</span>
                                </div>
                                <div style="margin-bottom:0px;width:400px;margin-top:20px;">
                                    <label for="metabolize125OHD3"
                                           style="color:#a1a1a1;">1,25-羟维生素D3（1,25-OH-D3）：</label>
                                    <input id="metabolize125OHD3" type="text" class="height form-control"
                                           style="width:150px;" name="metabolize125OHD3"
                                           v-model="blCheckData.metabolize125OHD3">
                                    <span style="left:90px;">ng/ml</span>
                                </div>
                            </div>
                        </div>
                        <div>
                            <label for="" style="width:112px;">X线检查：</label>
                            <%--<label for="lineTime" >检查日期：</label>--%>
                            <%--<div style="width:15%;display:inline-block;vertical-align:middle;margin-bottom:5px;">--%>
                            <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                            <%--<input v-model="checkData.lineTime" id="lineTime" type="text" class="lay-date" placeholder="  开始日期" readonly style="width:100%;">--%>
                            <%--</div>--%>
                            <%--</div>--%>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="feritin fadeContainer" style="margin-left: 0;margin-top:0px;margin-bottom:0px;">
                                <div style="width:100%;overflow:hidden;">
                                    <label style="margin-top:5px;">骨折：</label>
                                    <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                         id="lineFracture" ref="blLineFracture">
                                        <span class="ill1" v-for="(item,key) in blLineFracture" :key="key">
                                            <input type="checkbox" :name="item.checkName" :checked="item.check"
                                                   :value="item.id" :id="item.forId"
                                                   @click="blLineFractureCheck(item)" />
                                            <label :for="item.forId">{{item.name}}</label>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="feritin fadeContainer" style="margin-left: 0;margin-top:0px;margin-bottom:0px;">
                                <div style="width:100%;overflow:hidden;">
                                    <label style="margin-top:5px;">胸椎骨折情况：</label>
                                    <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                         id="lineChest" ref="blLineChest">
                                        <span class="ill1" v-for="(item,key) in blLineChest" :key="key">
                                            <input type="checkbox" :name="item.checkName" :checked="item.check"
                                                   :value="item.id" :id="item.forId" @click="blLineChestCheck(item)" />
                                            <label :for="item.forId">{{item.name}}</label>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="feritin fadeContainer" style="margin-left: 0;margin-top:0px;margin-bottom:0px;">
                                <div style="width:100%;overflow:hidden;">
                                    <label style="margin-top:5px;">胸椎骨折选择：</label>
                                    <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                         id="lineChest" ref="blLineChest">
                                        <span class="ill1" v-for="(item,key) in blLineChestSelect" :key="key">
                                            <label :for="item.name">{{item.name}}</label>
                                            <select :name="item.name" :id="item.name" v-model="item.id">
                                                <option value="">请选择</option>
                                                <option value="1">一度</option>
                                                <option value="2">二度</option>
                                                <option value="3">三度</option>
                                            </select>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style="width:300px;height:100px;position:relative;display:inline-block;left:120px;">
                            <label for="">添加图片：</label>
                            <span class="addImg"
                                  style="width:100px;height:100px;oveflow:hidden;display:inline-block;vertical-align:top;border:1px solid #d0d0d0;">
                                <img :src="checkData.linePhoto" v-if=" blCheckData.linePhoto!= '' " id="linePhoto"
                                     style="max-width:100%;height:98px;">
                                <img v-else src="../assets/images/addimage.png" style="max-width:100%;height:98px;">
                            </span>
                            <input type="file" name="file" id="file" ref="file" style="display:none !important;">
                        </div>
                        <div style="margin-left:120px;">
                            <label for="">症状描述：</label>
                            <textarea name="" id="" cols="30" rows="10" style="height:80px;"
                                      v-model="blCheckData.lineMsg"></textarea>
                        </div>
                        <div style="margin-bottom:0px;">
                            <label for="" style="width:112px;">实验室检查：</label>
                            <label for="blood">血常规：</label>
                            <select name="blood" id="blood" v-model="blCheckData.blood">
                                <option value="">请选择</option>
                                <option value="1">已查</option>
                                <option value="2">未查</option>
                            </select>
                            <%--<label for="bloodTime" style="margin-left:22px;">检查日期：</label>--%>
                            <%--<div style="width:15%;display:inline-block;vertical-align:top;margin-bottom:5px;">--%>
                            <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                            <%--<input v-model="checkData.bloodTime" id="bloodTime" type="text" class="lay-date" placeholder="  开始日期" readonly style="width:100%;">--%>
                            <%--</div>--%>
                            <%--</div>--%>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                <div style="margin-bottom:0px;width:280px;margin-top:20px;height:30px;">
                                    <label for="bloodWBC" style="vertical-align:middle;color:#a1a1a1">白细胞（WBC）：</label>
                                    <input id="bloodWBC" type="text" class="height form-control" name="bloodWBC"
                                           v-model="blCheckData.bloodWBC">
                                    <span style="left:95px;top:5px;">
                                        <img src="../assets/images/unit.png" alt="">
                                    </span>
                                </div>
                                <div style="margin-bottom:0px;width:280px;margin-top:20px;height:30px;">
                                    <label for="bloodRBC" style="vertical-align:middle;color:#a1a1a1">红细胞（RBC）：</label>
                                    <input id="bloodRBC" type="text" class="height form-control" name="bloodRBC"
                                           v-model="blCheckData.bloodRBC">
                                    <span style="left:95px;top:5px;">
                                        <img src="../assets/images/unit12.png" alt="">
                                    </span>
                                </div>
                                <div style="margin-bottom:0px;width:280px;margin-top:20px;">
                                    <label for="bloodHb" style="color:#a1a1a1">血红蛋白（Hb）：</label>
                                    <input id="bloodHb" type="text" class="height form-control" name="bloodHb"
                                           v-model="blCheckData.bloodHb">
                                    <span style="left:105px;">g/L</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:300px;height:30px;">
                                    <label for="bloodPLT" style="vertical-align:middle;color:#a1a1a1">血小板（PLT）：</label>
                                    <input id="bloodPLT" type="text" class="height form-control" style="width:150px;"
                                           name="bloodPLT" v-model="blCheckData.bloodPLT">
                                    <span style="left:105px;top:5px;">
                                        <img src="../assets/images/unit.png" alt="">
                                    </span>
                                </div>
                                <div style="margin-bottom:0px;width:400px;">
                                    <label for="bloodPINP" style="color:#a1a1a1">Ⅰ型原胶原N-端前肽（PINP）：</label>
                                    <input id="bloodPINP" type="text" class="height form-control" style="width:150px;"
                                           name="bloodPINP" v-model="blCheckData.bloodPINP">
                                    <span style="left:90px;">ng/ml</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <label for="urine">尿常规：</label>
                            <select name="urine" id="urine" v-model="blCheckData.urine">
                                <option value="">请选择</option>
                                <option value="1">已查</option>
                                <option value="2">未查</option>
                            </select>
                        </div>
                        <div style="margin-left:120px;margin-bottom:0px;">
                            <label for="biochemistry">生化检查：</label>
                            <select name="biochemistry" id="biochemistry" v-model="blCheckData.biochemistry">
                                <option value="">请选择</option>
                                <option value="1">已查</option>
                                <option value="2">未查</option>
                            </select>
                            <%--<label for="biochemistryTime" style="margin-left:20px;">检查日期：</label>--%>
                            <%--<div style="width:15%;display:inline-block;vertical-align:top;margin-bottom:5px;">--%>
                            <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                            <%--<input v-model="checkData.biochemistryTime" id="biochemistryTime" type="text" class="lay-date" placeholder="  开始日期" readonly style="width:100%;">--%>
                            <%--</div>--%>
                            <%--</div>--%>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                <div style="margin-bottom:0px;width:280px;margin-top:20px;">
                                    <label for="biochemistryCr" style="color:#a1a1a1">肌酐（Cr) ：</label>
                                    <input id="biochemistryCr" type="text" class="height form-control"
                                           style="width:150px;" name="biochemistryCr"
                                           v-model="blCheckData.biochemistryCr">
                                    <span style="left:90px;">umol/L</span>
                                </div>
                                <div style="margin-bottom:0px;width:280px;margin-top:20px;">
                                    <label for="biochemistryUA" style="color:#a1a1a1">尿酸（UA）：</label>
                                    <input id="biochemistryUA" type="text" class="height form-control"
                                           style="width:150px;" name="biochemistryUA"
                                           v-model="blCheckData.biochemistryUA">
                                    <span style="left:90px;">umol/L</span>
                                </div>
                                <div style="margin-bottom:0px;width:280px;margin-top:20px;">
                                    <label for="biochemistryUrea" style="color:#a1a1a1">尿素（Urea）：</label>
                                    <input id="biochemistryUrea" type="text" class="height form-control"
                                           style="width:150px;" name="biochemistryUrea"
                                           v-model="blCheckData.biochemistryUrea">
                                    <span style="left:90px;">mmol/L</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:300px;">
                                    <label for="biochemistryESR" style="color:#a1a1a1">血沉（ESR)：</label>
                                    <input id="biochemistryESR" type="text" class="height form-control"
                                           style="width:150px;" name="biochemistryESR"
                                           v-model="blCheckData.biochemistryESR">
                                    <span style="left:90px;">mm/h</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <label for="thyroid">甲状腺功能：</label>
                            <select name="thyroid" id="thyroid" v-model="blCheckData.thyroid">
                                <option value="">请选择</option>
                                <option value="1">已查</option>
                                <option value="2">未查</option>
                            </select>
                            <%--<label for="thyroidTime" style="margin-left:20px;">检查日期：</label>--%>
                            <%--<div style="width:15%;display:inline-block;vertical-align:top;margin-bottom:5px;">--%>
                            <%--<div id="PrevTime" class="input-group date form_date" style="width: 100%;margin-bottom:0px;"  data-date-format="yyyy-mm-dd" >--%>
                            <%--<input v-model="checkData.thyroidTime" id="thyroidTime" type="text" class="lay-date" placeholder="  开始日期" readonly style="width:100%;">--%>
                            <%--</div>--%>
                            <%--</div>--%>
                        </div>
                        <div style="margin-left:120px;margin-bottom:0px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:370px;">
                                    <label for="thyroidTT3" style="color:#a1a1a1">总三碘甲腺原氨酸（TT3）：</label>
                                    <input id="thyroidTT3" type="text" class="height form-control" style="width:150px;"
                                           name="thyroidTT3" v-model="blCheckData.thyroidTT3">
                                    <span style="left:90px;">nmol/L</span>
                                </div>
                                <div style="margin-bottom:0px;width:400px;">
                                    <label for="thyroidTT4" style="color:#a1a1a1">总甲状腺素（TT4）：</label>
                                    <input id="thyroidTT4" type="text" class="height form-control" style="width:150px;"
                                           name="thyroidTT4" v-model="blCheckData.thyroidTT4">
                                    <span style="left:90px;">nmol/L</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;margin-top:0px;">
                                <div style="margin-bottom:0px;width:378px;margin-top:20px;">
                                    <label for="thyroidFT3" style="color:#a1a1a1">游离三碘甲腺原氨酸（FT3) ：</label>
                                    <input id="thyroidFT3" type="text" class="height form-control" style="width:150px;"
                                           name="thyroidFT3" v-model="blCheckData.thyroidFT3">
                                    <span style="left:90px;">pmol/L</span>
                                </div>
                                <div style="margin-bottom:0px;width:400px;margin-top:20px;">
                                    <label for="thyroidFT4" style="color:#a1a1a1">游离甲腺素（FT4）：</label>
                                    <input id="thyroidFT4" type="text" class="height form-control" style="width:150px;"
                                           name="thyroidFT4" v-model="blCheckData.thyroidFT4">
                                    <span style="left:90px;">pmol/L</span>
                                </div>
                            </div>
                        </div>
                        <div style="margin-left:120px;">
                            <div class="sign_content third" style="margin-left:0px;margin-bottom:0px;">
                                <div style="margin-bottom:0px;width:300px;">
                                    <label for="thyroidTSH" style="color:#a1a1a1">促甲状腺激素（TSH) ：</label>
                                    <input id="thyroidTSH" type="text" class="height form-control" style="width:150px;"
                                           name="thyroidTSH" v-model="blCheckData.thyroidTSH">
                                    <span style="left:90px;">mIU/L</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="way" style="margin-top:15px;">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">随诊药物使用信息</span>
                    <div class="way_content">
                        <div>
                            <label for="prescribingDrugs">此次诊疗是否开药：</label>
                            <select name="prescribingDrugs" id="prescribingDrugs"
                                    v-model="blCheckData.prescribingDrugs">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <option value="2">否</option>
                            </select>
                            <label for="prescribingDrugsPre" style="margin-left:20px;">是否在上次用药方案基础上完善此次药物信息？：</label>
                            <select name="prescribingDrugsPre" id="prescribingDrugsPre"
                                    v-model="blCheckData.prescribingDrugsPre" @change="chengSelect()">
                                <option value="">请选择</option>
                                <option value="1">是</option>
                                <%--<option value="2">否</option>--%>
                            </select>
                        </div>
                        <div>
                            <div style="margin-bottom:10px;height:30px;width:95%">
                                <button type="button" class="btn btn-info" @click="deletMedical()"
                                        style="margin-right:20px;margin-top:20px;">
                                    删除
                                </button>
                                <button type="button" class="btn btn-info" @click="UpdateMedical()"
                                        style="margin-right:20px;margin-top:20px;">
                                    修改
                                </button>
                                <button type="button" class="btn btn-info" @click="toAddMedical()"
                                        style="margin-right:20px;margin-top:20px;">
                                    新增
                                </button>
                            </div>
                        </div>
                        <div style="padding-top: 20px;padding-bottom: 20px;">
                            <div id="blTable">
                                <table id="example" class="display" cellspacing="10" width="95%">
                                    <thead>
                                    <tr>
                                        <th></th>
                                        <th>商品类别</th>
                                        <th>化学名称</th>
                                        <th>商品名称</th>
                                        <th>单次用量</th>
                                        <th>使用频率</th>
                                        <th>给药方式</th>
                                        <%--<th>用法</th>--%>
                                        <th>是否停用</th>
                                    </tr>
                                    </thead>
                                    <tbody v-if="blMedicalList.length != 0">
                                    <tr v-for="item in blMedicalList">
                                        <th>
                                            <input type="checkbox" class="check_id" :value="item.id">
                                        </th>
                                        <th>{{item.type}}</th>
                                        <th>{{item.chemistryName}}</th>
                                        <th>{{item.productName}}</th>
                                        <th>{{item.consumption}}</th>
                                        <th>{{item.frequency}}</th>
                                        <th>{{item.mode}}</th>
                                        <th v-if="item.useStop == '1' ">
                                            是
                                        </th>
                                        <th v-else-if="item.useStop == '0' ">
                                            否
                                        </th>
                                    </tr>
                                    </tbody>
                                </table>
                                <p v-if="blMedicalList.length == 0"
                                   style="text-align:center;color:black;line-height:30px;">暂无数据</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <%-- 随访提醒 --%>
        <div class="illness"
             style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;"
             v-show="showAcompany">
            <div style="margin-left:19px;">
                <div style="margin-bottom:10px;">
                    <h3 style="display:inline-block;margin-top:20px;">随访记录</h3>
                    <button type="button" class="btn btn-info" onclick="moreAccompany()" style="margin-top:20px;">更多
                    </button>
                    <button type="button" class="btn btn-info" @click="addNoMedical()" style="margin-top:20px;">
                        <img src="../assets/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                    </button>
                    <button type="button" class="btn btn-info" @click="addBlAccompanyWithMedical()" style="margin-top:20px; width:150px">
                        <img src="../assets/images/add.png" alt="" style="width:20px;vertical-align: middle;">&nbsp;&nbsp;添加有药物随访
                    </button>
                </div>
                <div id="tablepart">
                    <table id="example4" class="display" cellspacing="10" width="95%">
                        <thead>
                        <tr style="bordr:none !important;cursor:auto !important">
                            <th>随访医生</th>
                            <th>随访日期</th>
                            <th>随访方式</th>
                            <%--<th>随访有无药物</th>--%>
                            <th>随访月份</th>
                            <th>下次随访日期</th>
                        </tr>
                        </thead>
                    </table>
                    <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                </div>
            </div>
        </div>


        <%-- 特殊处理 --%>
        <div class="showToggle" style="width:30px;margin:20px auto;cursor:pointer;height:30px;">
            <img class="down" src="${assets}/images/fadeOut.png" alt=""  @click="collspse()" >
            <img class="up" src="${assets}/images/fadeIn.png" alt="" @click="collspse()" style="display:none;">
        </div>
        <div class="illness1" style="display:block;margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.05);padding-bottom:10px;" id="specialDeal">
            <div style="margin-left:19px;">
                <div style="margin-bottom:10px;">
                    <h3 style="display:inline-block;margin-top:20px;">特殊处理</h3>
                    <button type="button" class="btn btn-info" @click="toMoreSpecRemark()" v-show="!check"
                            style="margin-top:20px;">更多
                    </button>
                    <button type="button" class="btn btn-info" @click="toAddSpecRemark()" style="margin-top:20px;">
                        <img src="../assets/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                    </button>
                </div>
                <div id="checktable1">
                    <table id="example8" class="display" cellspacing="10" width="95%">
                        <thead>
                        <tr style="bordr:none !important;cursor:auto !important">
                            <th>&nbsp;&nbsp;</th>
                            <th style="width:8% !important">序号</th>
                            <th style="width:1%;"></th>
                            <th style="width:22% !important">日期</th>
                            <th>特殊处理内容</th>
                        </tr>
                        </thead>
                    </table>
                    <p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>
                </div>
                <div class="test">
                    <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                        <span class="title">近一周高血压数据：</span>
                    </div>
                </div>
                <div id="tablepart5">
                    <table id="example5" class="display" cellspacing="10" width="95%">
                        <thead>
                        <tr>
                            <th style="width:8% !important">异常</th>
                            <th style="width:22.5% !important">检测时间</th>
                            <th style="width:22.5% !important">收缩压(mmHg)</th>
                            <th style="width:22.5% !important">舒张压(mmHg)</th>
                            <th style="width:22.5% !important">心率(bmp)</th>
                        </tr>
                        </thead>
                    </table>
                </div>
                <div class="test">
                    <div style="width:100%;overflow:hidden;margin-bottom:10px;">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                        <span class="title">近一周糖尿病数据：</span>
                    </div>
                </div>
                <div id="table3">
                    <table id="example6" class="display" cellspacing="10" width="95%">
                        <thead>
                        <tr>
                            <th>异常</th>
                            <th>检测时间</th>
                            <th>空腹血糖( mmol/L )</th>
                            <th>餐后血糖( mmol/L )</th>
                        </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
        <%--<div class="illness1" style="margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">--%>
        <%--<div style="margin-left:19px;">--%>
        <%--<div style="margin-bottom:10px;">--%>
        <%--<h3 style="display:inline-block;margin-top:20px;">特殊处理</h3>--%>
        <%--<button type="button" id="updateSpecRemark" class="btn btn-info" @click="updateSpecRemark()"  style="margin-top:20px;">--%>
        <%--修改--%>
        <%--</button>--%>

        <%--</div>--%>
        <%--<div class="test">--%>
        <%--<div style="width:100%;overflow:hidden;margin-bottom:10px;">--%>
        <%--<span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>--%>
        <%--<span class="title">特殊处理备注：</span>--%>
        <%--</div>--%>
        <%--</div>--%>
        <%--<div class="feritin" style="margin-bottom:0px;" >--%>
        <%--<div class="way_content">--%>
        <%--<div class="firstShow">--%>
        <%--<span class="title" style="color: rgb(169, 169, 169);">信息备注：</span>--%>
        <%--<textarea name="specRemark" class="form-control" disabled="disabled" id="specRemark" type="text" placeholder="请输入内容" style="height: 80px;"></textarea>--%>
        <%--</div>--%>
        <%--</div>--%>
        <%--</div>--%>
        <%--<div class="test">--%>
        <%--<div style="width:100%;overflow:hidden;margin-bottom:10px;">--%>
        <%--<span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>--%>
        <%--<span class="title">近一周高血压数据：</span>--%>
        <%--</div>--%>
        <%--</div>--%>
        <%--<div id="tablepart5">--%>
        <%--<table id="example5" class="display" cellspacing="10" width="95%">--%>
        <%--<thead>--%>
        <%--<tr>--%>
        <%--<th style="width:8% !important">异常</th>--%>
        <%--<th style="width:22.5% !important">检测时间</th>--%>
        <%--<th style="width:22.5% !important">收缩压(mmHg)</th>--%>
        <%--<th style="width:22.5% !important">舒张压(mmHg)</th>--%>
        <%--<th style="width:22.5% !important">心率(bmp)</th>--%>
        <%--</tr>--%>
        <%--</thead>--%>
        <%--</table>--%>
        <%--</div>--%>
        <%--<div class="test">--%>
        <%--<div style="width:100%;overflow:hidden;margin-bottom:10px;">--%>
        <%--<span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>--%>
        <%--<span class="title">近一周糖尿病数据：</span>--%>
        <%--</div>--%>
        <%--</div>--%>
        <%--<div id="table3">--%>
        <%--<table id="example6" class="display" cellspacing="10" width="95%">--%>
        <%--<thead>--%>
        <%--<tr>--%>
        <%--<th>异常</th>--%>
        <%--<th>检测时间</th>--%>
        <%--<th>空腹血糖( mmol/L )</th>--%>
        <%--<th>餐后血糖( mmol/L )</th>--%>
        <%--</tr>--%>
        <%--</thead>--%>
        <%--</table>--%>
        <%--</div>--%>
        <%--</div>--%>
        <%--</div>--%>

        <%-- 检验项目 --%>
        <div class="illness"
             style="margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
            <div style="margin-left:19px;">
                <div style="margin-bottom:10px;">
                    <h3 style="display:inline-block;margin-top:20px;">检验项目</h3>
                    <button type="button" class="btn btn-info" @click="toMoreTest()" v-show="!checkTestProject"
                            style="margin-top:20px;">更多
                    </button>
                    <%--<button type="button" class="btn btn-info" @click="toUpdateCheck()" v-show="!check" style="margin-top:20px;">--%>
                    <%--<img src="../assets/images/revise.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;修改--%>
                    <%--</button>--%>
                    <%--<button type="button" class="btn btn-info" @click="deletCheck()" v-show="!check" style="margin-top:20px;">--%>
                    <%--删除--%>
                    <%--</button>--%>
                    <button type="button" class="btn btn-info" @click="toAddCheck()" style="margin-top:20px;">
                        <img src="../assets/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                    </button>
                </div>
                <div id="checktable">
                    <table id="example3" class="display" cellspacing="10" width="95%">
                        <thead>
                        <tr style="bordr:none !important;cursor:auto !important">
                            <th>&nbsp;&nbsp;</th>
                            <th>序号</th>
                            <th style="width:1%;"></th>
                            <th>大类项目</th>
                            <th>小类项目</th>
                            <th>结果</th>
                            <th>参考值</th>
                            <th>单位</th>
                            <th>检验时间</th>
                            <th>创建医生</th>
                            <th>所属医院</th>
                        </tr>
                        </thead>
                    </table>
                    <p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>
                </div>
            </div>
        </div>
        <%-- 用药信息 --%>
        <div class="illness"
             style="margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
            <div>
                <div style="margin-left:19px;">
                    <div style="margin-bottom:10px;">
                        <h3 style="display:inline-block;margin-top:20px;">用药信息</h3>
                        <button type="button" class="btn btn-info" @click="addMedical()" v-show="!slide"
                                style="margin-top:20px;">更多
                        </button>
                        <%--<button v-show="!slide" type="button" class="btn btn-info" @click="UpdateMedical()" style="margin-right:20px;margin-top:20px;" >--%>
                        <%--<img src="../assets/images/revise.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;修改--%>
                        <%--</button>--%>
                        <%--<button v-show="!slide" type="button" class="btn btn-info" @click="deletMedical()" style="margin-right:20px;margin-top:20px;" >--%>
                        <%--删除--%>
                        <%--</button>--%>
                        <button type="button" class="btn btn-info" @click="toAddMedical()"
                                style="margin-right:20px;margin-top:20px;">
                            <img src="../assets/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                        </button>
                    </div>
                    <div id="table">
                        <table id="example1" class="display" cellspacing="10" width="95%">
                            <thead>
                            <tr>
                                <th></th>
                                <th>序号</th>
                                <th></th>
                                <th>药名</th>
                                <th>数量（剂量）</th>
                                <th>规格</th>
                                <th>频度（次数）</th>
                                <th>用法</th>
                                <th>开立医生</th>
                                <th>开立时间</th>
                            </tr>
                            </thead>
                        </table>
                        <p v-show="slide">暂无数据</p>
                    </div>
                </div>
            </div>
        </div>
        <%-- 疼痛评估 --%>
        <div class="illness" v-show="isillness"
             style="margin-top:20px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
            <div style="margin-left:19px;padding-top:20px;padding-bottom:20px;">
                <div class="test">
                    <div>
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle"></span>
                        <span class="title">疼痛评估</span>
                        <button type="button" class="btn btn-info" @click="paint()">
                            <img src="../assets/images/revise.png" alt="" style="width:16px;vertical-align: middle;"> 修改
                        </button>
                    </div>
                    <div class="feritin" style="margin-left:20px;">
                        <span style="color:#a9a9a9;margin-right:50px;">疼痛评估表</span>
                        <div style="display:inline-block;vertical-align: top;width:85%;" class="pain">
                            <span class="chank" v-for="item in pain">
<%--                                <input type="radio" value="1" :id="item.key" onclick="return false;"/>--%>
<%--                                <input type="radio" :id="item.key" onclick="return false;"/>--%>
                                <input type="radio" :id="item.key" onclick="return false" />
                                <label :for="item.key">{{item.value}}</label>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="save" style="with:100%;padding-bottom:40px;text-align:center;">
                <button style="float:none;" type="button" class="btn btn-info" @click="dataSave()" :disabled="saveDisabled">
                    <img src="../assets/images/revise.png" alt=""
                         style="width:16px;vertical-align: middle;"> 保存
                </button>
            </div>
        </div>
    </div>
</div>
<script>
    function collspse(){
        var display = $('#specialDeal').css('display');
        if(display == 'none'){
          $('#specialDeal').show();
          $('.up').hide();
          $('.down').show();
        }else {
          $('#specialDeal').hide();
          $('.collapse').text('显示');
          $('.up').show();
          $('.down').hide();
        }
   }

    function collspseHistory(classname){
      var $div = $('.'+classname);
      var display = $div.css('display');
      // if(classname == 'personHistory'){
      //   var display = $div.css('display');
      // }else{
      //   var displayChart = $('.chartData').css('display');
      // }
        if(display == 'none'){
          $div.show();
          // $('.personHistory').show();
          $('.up').hide();
          $('.down').show();
        }else {
          // $('.personHistory').hide();
          $div.hide();
          // $('.collapse').text('显示');
          $('.up').show();
          $('.down').hide();
        }
   }

    var vm = new Vue({
        el: "#main",
        data: {
            //  是否最近有高血压检测
            isCheckBp: false,
            isCheckBf: false,
            isillness: false,
            isLoose: true,
            // 吸烟
            smoke: '',
            // 饮酒
            drink: '',
            // 膳食
            diet: '',
            // 睡眠时间
            sleepTime: '',
            // 日晒时间
            sunTime: '',
            // 锻炼频率
            sportTimes: '',
            // 锻炼时间
            sportTime: '',
            // 抗骨松药物
            drug: '',
            // 肾上腺皮质激素
            hormone: '',
            // 性激素及相关药物
            sexHomone: '',
            // 其他生活习惯
            liveMsg: '',
            // 是否骨折
            fracture: '',
            // 首页地址
            refreshto: '',
            illnessData: [
                {
                    name: '既往体健',
                    id: '',
                    list: []
                },
                {
                    name: '风湿系统疾病',
                    id: 'rheumatismType',
                    list: [
                        {
                            name: '类风湿性关节炎',
                            id: '1',
                            forId: 'ysxjb1',
                            checked: false
                        },
                        {
                            name: '骨关节炎',
                            id: '2',
                            forId: 'ysxjb2',
                            checked: false
                        },
                        {
                            name: '脊椎关节炎',
                            id: '3',
                            forId: 'ysxjb3',
                            checked: false
                        },
                        {
                            name: '血管炎',
                            id: '4',
                            forId: 'ysxjb4',
                            checked: false
                        },
                        {
                            name: '原发性干燥综合征',
                            id: '5',
                            forId: 'ysxjb5',
                            checked: false
                        },
                        {
                            name: '系统性红斑狼疮',
                            id: '6',
                            forId: 'ysxjb6',
                            checked: false
                        },
                        {
                            name: '系统性硬化症',
                            id: '7',
                            forId: 'ysxjb7',
                            checked: false
                        },
                        {
                            name: '多发性肌炎和皮肌炎',
                            id: '8',
                            forId: 'ysxjb8',
                            checked: false
                        },
                        {
                            name: '自身免疫性肝病',
                            id: '9',
                            forId: 'ysxjb9',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '10',
                            forId: 'ysxjb10',
                            checked: false
                        }
                    ]
                },
                {
                    name: '内分泌及代谢系统疾病',
                    id: 'endocrineType',
                    list: [
                        {
                            name: '甲状腺功能亢进症',
                            id: '1',
                            forId: 'nfm1',
                            checked: false
                        },
                        {
                            name: '甲状旁腺功能亢进症',
                            id: '2',
                            forId: 'nfm2',
                            checked: false
                        },
                        {
                            name: '库欣综合征',
                            id: '3',
                            forId: 'nfm3',
                            checked: false
                        },
                        {
                            name: '1型糖尿病',
                            id: '4',
                            forId: 'nfm4',
                            checked: false
                        },
                        {
                            name: '2型糖尿病',
                            id: '5',
                            forId: 'nfm5',
                            checked: false
                        },
                        {
                            name: '性腺功能减退',
                            id: '6',
                            forId: 'nfm6',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '7',
                            forId: 'nfm7',
                            checked: false
                        }
                    ]
                },
                {
                    name: '循环系统疾病',
                    id: 'circulatoryType',
                    list: [
                        {
                            name: '高血压',
                            id: '1',
                            forId: 'xhxt1',
                            checked: false
                        },
                        {
                            name: '冠状动脉粥样硬化心脏病',
                            id: '2',
                            forId: 'xhxt2',
                            checked: false
                        },
                        {
                            name: '高血脂症',
                            id: '3',
                            forId: 'xhxt3',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '4',
                            forId: 'xhxt',
                            checked: false
                        }
                    ]
                },
                {
                    name: '呼吸系统疾病',
                    id: 'breathingType',
                    list: [
                        {
                            name: '支气管哮喘',
                            id: '1',
                            forId: 'hxxt1',
                            checked: false
                        },
                        {
                            name: '慢性阻塞性肺疾病',
                            id: '2',
                            forId: 'hxxt2',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '3',
                            forId: 'hxxt3',
                            checked: false
                        },
                    ]
                },
                {
                    name: '神经及精神系统疾病',
                    id: 'nerveType',
                    list: [
                        {
                            name: '神经性厌食症',
                            id: '1',
                            forId: 'sjxt1',
                            checked: false
                        },
                        {
                            name: '脑血管病',
                            id: '2',
                            forId: 'sjxt2',
                            checked: false
                        },
                        {
                            name: '重症肌无力',
                            id: '3',
                            forId: 'sjxt3',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '4',
                            forId: 'sjxt4',
                            checked: false
                        },
                    ]
                },
                {
                    name: '消化系统疾病',
                    id: 'digestionType',
                    list: [
                        {
                            name: '肝硬化',
                            id: '1',
                            forId: 'xhxtjb1',
                            checked: false
                        },
                        {
                            name: '吸收不良综合征',
                            id: '2',
                            forId: 'xhxtjb2',
                            checked: false
                        },
                        {
                            name: '炎症性肠病（溃疡性结肠炎；克罗恩病）',
                            id: '3',
                            forId: 'xhxtjb3',
                            checked: false
                        },
                        {
                            name: '乳糜泻',
                            id: '4',
                            forId: 'xhxtjb4',
                            checked: false
                        },
                        {
                            name: '胃部大切除术后',
                            id: '5',
                            forId: 'xhxtjb5',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '6',
                            forId: 'xhxtjb6',
                            checked: false
                        },
                    ]
                },
                {
                    name: '泌尿系统疾病',
                    id: 'urineType',
                    list: [
                        {
                            name: '慢性肾功能不全或衰竭',
                            id: '1',
                            forId: 'mnxt1',
                            checked: false
                        },
                        {
                            name: '肾小管性疾病',
                            id: '2',
                            forId: 'mnxt2',
                            checked: false
                        },
                        {
                            name: '原发性胃小球肾病',
                            id: '3',
                            forId: 'mnxt3',
                            checked: false
                        },
                        {
                            name: '肾淀粉样变性',
                            id: '4',
                            forId: 'mn4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'mn5',
                            checked: false
                        }
                    ]
                },
                {
                    name: '血液系统疾病',
                    id: 'bloodType',
                    list: [
                        {
                            name: '白血病',
                            id: '1',
                            forId: 'xyxt1',
                            checked: false
                        },
                        {
                            name: '骨髓增长异常综合征',
                            id: '2',
                            forId: 'xyxt2',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '3',
                            forId: 'xyxt3',
                            checked: false
                        }
                    ]
                },
                {
                    name: '先天性及遗传性疾病',
                    id: 'inheritanceType',
                    list: [
                        {
                            name: '马凡综合征',
                            id: '1',
                            forId: 'xtxyc1',
                            checked: false
                        },
                        {
                            name: '血色病',
                            id: '2',
                            forId: 'xtxyc2',
                            checked: false
                        },
                        {
                            name: '卟啉病',
                            id: '3',
                            forId: 'xtxyc3',
                            checked: false
                        },
                        {
                            name: '成骨不全',
                            id: '4',
                            forId: 'xtxyc4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'xtxyc5',
                            checked: false
                        }
                    ]
                },
                {
                    name: '其他',
                    id: 'otherType',
                    list: [
                        {
                            name: '原发性骨肿瘤',
                            id: '1',
                            forId: 'other1',
                            checked: false
                        },
                        {
                            name: '继发性骨肿瘤',
                            id: '2',
                            forId: 'other2',
                            checked: false
                        },
                        {
                            name: '乳腺癌',
                            id: '3',
                            forId: 'other3',
                            checked: false
                        },
                        {
                            name: '艾滋病',
                            id: '4',
                            forId: 'other4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'other5',
                            checked: false
                        }
                    ]
                }
            ],
            accompany: true,
            showAcompany: false,
            accompanyadd: true,
            // 骨松数据
            testData: '',
            // 最后一次骨松数据
            lastTextData: {
                ultrasonic: '',
                dXA: '',
                p1NP: '',
                βCTX: '',
                message: ''
            },
            chartOSTA: false,
            chartGzh: false,
            infor: [],
            synchronous: false,
            illness: {
                number: "",
                number1: ""
            },
            illness1: {
                number: "",
                number1: ""
            },
            illness2: {
                number: "",
                number1: "",
                number2: "",
                number3: "",
                number4: "",
                number5: "",
                number6: ""
            },
            // 检测报告信息
            report: [],
            // 用药信息
            medical: [],
            // 生命特征
            vital: [],
            // 血压数据
            BpInfo: {
                data: [],
                firstjson: [],
                secondjson: []
            },
            // 疼痛信息
            pain: [],
            mainbar: true,
            // 血糖趋势
            BsInfo: {
                data: [],
                data1: [],
                firstjson: [],
                secondjson: []
            },
            // 血脂趋势
            xzqs: true,
            BfInfo: {
                data: [],
                data1: [],
                data2: [],
                firstjson: [],
                secondjson: [],
                thirdjson: [],
                fourthjson: [],
                fifthjson: [],
                sixthjson: [],
                seventhjson: []
            },
            bfinfo: true,
            chartBf: true,
            chartmain: true,
            show: false,
            slide: false,
            xyqs: true,
            xtqs: true,
            testTime: [],
            bgtime: [],
            test: true,
            checkid: '',
            noData1: true,
            noData2: true,
            check: true,
            checkTestProject: true,
            bginfo: true,
            bpinfo: true,
            diseasesType: '',
            Type: '',
            btnText: '',
            dis: false,
            urlBase: '',
            rarefaction: false,
            bfData: {
                bfGrade: '',
                diagnosisTime: '',
                otherSymptom: '',
                medicalMsg: '',
                height: '',
                weight: '',
                bmi: '',
                waistline: '',
                pul: '',
                bloodSugarL: '',
                highPressure: '',
                lowPressure: '',
                triglyceride: '',
                diagTriglyceride: '', //甘油三脂
                cholesterol: '',
                diagcholesterol: '',  //总胆固醇
                diagLowCholesterol: '', //低密度胆固醇
                diagHighCholesterol: '',    //高密度胆固醇
                highCholesterol: '',
                lowCholesterol: '',
                otherIll: '',
                bloodFat: '',
                proposal: '',
                total: ''
            },
            isBfAccompany: true,
            showbf: true,
            weekBpTable: '',
            weekBsTable: '',
            bpWeekDataMore: false,
            bsWeekDataMore: false,
            bsBeginDate: "",
            bsEndDate: "",
            //    风险筛查模块
            blData: {
                humpback: '',
                menstruation: '',
                estrogen: '',
                androgen: '',
                sport: '',
                check: '',
                osteoporosis: '',
                fracture: '',
                diagnosis: '',
                diagnosisMsg: '',
                advice: '',
                riskLevel: '',
                osta: '',
                screeningTime: '',
                riskId: '',
            },
            // 诊疗信息模块
            score1: false,
            DXA1: false,
            score2: false,
            DXA2: false,
            saveDisabled: false,
            lineChestSelect: [],
            medicalList: [],
            BMI: '',
            type: '',
            chemistryName: '',
            productName: '',
            consumption: '',
            frequency: '',
            mode: '',
            useStop: '',
            DXA: false,
            score: false,
            showCurd: false,
            diagnosticData: [
                {
                    name: '既往体健',
                    id: '',
                    list: []
                },
                {
                    name: '风湿系统疾病',
                    id: 'rheumatismType',
                    list: [
                        {
                            name: '类风湿性关节炎',
                            id: '1',
                            forId: 'ysxjb1',
                            checked: false
                        },
                        {
                            name: '骨关节炎',
                            id: '2',
                            forId: 'ysxjb2',
                            checked: false
                        },
                        {
                            name: '脊椎关节炎',
                            id: '3',
                            forId: 'ysxjb3',
                            checked: false
                        },
                        {
                            name: '血管炎',
                            id: '4',
                            forId: 'ysxjb4',
                            checked: false
                        },
                        {
                            name: '原发性干燥综合征',
                            id: '5',
                            forId: 'ysxjb5',
                            checked: false
                        },
                        {
                            name: '系统性红斑狼疮',
                            id: '6',
                            forId: 'ysxjb6',
                            checked: false
                        },
                        {
                            name: '系统性硬化症',
                            id: '7',
                            forId: 'ysxjb7',
                            checked: false
                        },
                        {
                            name: '多发性肌炎和皮肌炎',
                            id: '8',
                            forId: 'ysxjb8',
                            checked: false
                        },
                        {
                            name: '自身免疫性肝病',
                            id: '9',
                            forId: 'ysxjb9',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '10',
                            forId: 'ysxjb10',
                            checked: false
                        }
                    ]
                },
                {
                    name: '内分泌及代谢系统疾病',
                    id: 'endocrineType',
                    list: [
                        {
                            name: '甲状腺功能亢进症',
                            id: '1',
                            forId: 'nfm1',
                            checked: false
                        },
                        {
                            name: '甲状旁腺功能亢进症',
                            id: '2',
                            forId: 'nfm2',
                            checked: false
                        },
                        {
                            name: '库欣综合征',
                            id: '3',
                            forId: 'nfm3',
                            checked: false
                        },
                        {
                            name: '1型糖尿病',
                            id: '4',
                            forId: 'nfm4',
                            checked: false
                        },
                        {
                            name: '2型糖尿病',
                            id: '5',
                            forId: 'nfm5',
                            checked: false
                        },
                        {
                            name: '性腺功能减退',
                            id: '6',
                            forId: 'nfm6',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '7',
                            forId: 'nfm7',
                            checked: false
                        }
                    ]
                },
                {
                    name: '循环系统疾病',
                    id: 'circulatoryType',
                    list: [
                        {
                            name: '高血压',
                            id: '1',
                            forId: 'xhxt1',
                            checked: false
                        },
                        {
                            name: '冠状动脉粥样硬化心脏病',
                            id: '2',
                            forId: 'xhxt2',
                            checked: false
                        },
                        {
                            name: '高血脂症',
                            id: '3',
                            forId: 'xhxt3',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '4',
                            forId: 'xhxt',
                            checked: false
                        }
                    ]
                },
                {
                    name: '呼吸系统疾病',
                    id: 'breathingType',
                    list: [
                        {
                            name: '支气管哮喘',
                            id: '1',
                            forId: 'hxxt1',
                            checked: false
                        },
                        {
                            name: '慢性阻塞性肺疾病',
                            id: '2',
                            forId: 'hxxt2',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '3',
                            forId: 'hxxt3',
                            checked: false
                        },
                    ]
                },
                {
                    name: '神经及精神系统疾病',
                    id: 'nerveType',
                    list: [
                        {
                            name: '神经性厌食症',
                            id: '1',
                            forId: 'sjxt1',
                            checked: false
                        },
                        {
                            name: '脑血管病',
                            id: '2',
                            forId: 'sjxt2',
                            checked: false
                        },
                        {
                            name: '重症肌无力',
                            id: '3',
                            forId: 'sjxt3',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '4',
                            forId: 'sjxt4',
                            checked: false
                        },
                    ]
                },
                {
                    name: '消化系统疾病',
                    id: 'digestionType',
                    list: [
                        {
                            name: '肝硬化',
                            id: '1',
                            forId: 'xhxtjb1',
                            checked: false
                        },
                        {
                            name: '吸收不良综合征',
                            id: '2',
                            forId: 'xhxtjb2',
                            checked: false
                        },
                        {
                            name: '炎症性肠病（溃疡性结肠炎；克罗恩病）',
                            id: '3',
                            forId: 'xhxtjb3',
                            checked: false
                        },
                        {
                            name: '乳糜泻',
                            id: '4',
                            forId: 'xhxtjb4',
                            checked: false
                        },
                        {
                            name: '胃部大切除术后',
                            id: '5',
                            forId: 'xhxtjb5',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '6',
                            forId: 'xhxtjb6',
                            checked: false
                        },
                    ]
                },
                {
                    name: '泌尿系统疾病',
                    id: 'urineType',
                    list: [
                        {
                            name: '慢性肾功能不全或衰竭',
                            id: '1',
                            forId: 'mnxt1',
                            checked: false
                        },
                        {
                            name: '肾小管性疾病',
                            id: '2',
                            forId: 'mnxt2',
                            checked: false
                        },
                        {
                            name: '原发性胃小球肾病',
                            id: '3',
                            forId: 'mnxt3',
                            checked: false
                        },
                        {
                            name: '肾淀粉样变性',
                            id: '4',
                            forId: 'mn4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'mn5',
                            checked: false
                        }
                    ]
                },
                {
                    name: '血液系统疾病',
                    id: 'bloodType',
                    list: [
                        {
                            name: '白血病',
                            id: '1',
                            forId: 'xyxt1',
                            checked: false
                        },
                        {
                            name: '骨髓增长异常综合征',
                            id: '2',
                            forId: 'xyxt2',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '3',
                            forId: 'xyxt3',
                            checked: false
                        }
                    ]
                },
                {
                    name: '先天性及遗传性疾病',
                    id: 'inheritanceType',
                    list: [
                        {
                            name: '马凡综合征',
                            id: '1',
                            forId: 'xtxyc1',
                            checked: false
                        },
                        {
                            name: '血色病',
                            id: '2',
                            forId: 'xtxyc2',
                            checked: false
                        },
                        {
                            name: '卟啉病',
                            id: '3',
                            forId: 'xtxyc3',
                            checked: false
                        },
                        {
                            name: '成骨不全',
                            id: '4',
                            forId: 'xtxyc4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'xtxyc5',
                            checked: false
                        }
                    ]
                },
                {
                    name: '其他',
                    id: 'otherType',
                    list: [
                        {
                            name: '原发性骨肿瘤',
                            id: '1',
                            forId: 'other1',
                            checked: false
                        },
                        {
                            name: '继发性骨肿瘤',
                            id: '2',
                            forId: 'other2',
                            checked: false
                        },
                        {
                            name: '乳腺癌',
                            id: '3',
                            forId: 'other3',
                            checked: false
                        },
                        {
                            name: '艾滋病',
                            id: '4',
                            forId: 'other4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'other5',
                            checked: false
                        }
                    ]
                }
            ],
            DId: '',
            checkData: {
                medicalList: [],
                linePhoto: '',
                // 当点击修改的时候才有的对应 id
                id: '',
                // 身份证
                idCard: '',
                // 患者症状描述
                msg: '',
                // 是否吸烟
                smoke: '',
                // 是否饮酒
                drink: '',
                // 膳食情况
                diet: '',
                // 引用类型
                drinkingType: [],
                // 睡眠时间
                sleepTime: '',
                // 日晒时间
                sunTime: '',
                // 锻炼频率
                sportTimes: '',
                // 锻炼时间
                sportTime: '',
                walkMsg: '',
                // 其他生活习惯
                liveMsg: '',
                // 风湿疾病
                rheumatismType: [],
                // 内分泌及代谢系统疾病
                endocrineType: [],
                // 循环系统疾病
                circulatoryType: [],
                // 呼吸系统疾病
                breathingType: [],
                // 神经及精神系统疾病
                nerveType: [],
                // 消化系统疾病
                digestionType: [],
                // 泌尿系统疾病
                urineType: [],
                // 血液系统疾病
                bloodType: [],
                // 先天性及遗传性疾病
                inheritanceType: [],
                // 其他疾病
                otherType: [],
                // 抗骨松药物
                drug: '',
                // 肾上腺皮质激素
                hormone: '',
                // 性激素及其相关药物
                sexHomone: '',
                // 其他药物使用情况
                otherDrug: [],
                // 骨折
                fracture: '',
                // 手术史
                operation: [],
                // 健康疾病情况
                healthy: '',
                // 婚姻及生育情况
                marriage: '',
                // 家庭成员病发情况
                family: '',
                // 身体检查情况
                body: '',
                // 判定病症情况
                disease: '',
                // 随诊日期
                checkTime: '',
                // 系首诊后
                afterDate: '',
                // 随诊类型
                checkType: '',
                // 身高
                height: '',
                // 体重
                weight: '',
                // 诊疗结论
                checkData: '',
                // 是否遵医嘱用药
                usdDrug: '',
                // 腰背痛
                waistType: '',
                // 腰背痛描述
                waistMsg: '',
                // 骨痛
                boneType: '',
                // 骨痛描述
                boneMsg: '',
                // 肌肉抽搐
                muscleType: '',
                // 肌肉抽搐描述
                muscleMsg: '',
                // 乏力
                powerType: '',
                // 乏力描述
                powerMsg: '',
                // 行走距离
                walkType: '',
                // 上认诊疗后有无骨折
                newFracture: '',
                // 行走状态
                walkState: '',
                // 站立 起来是否需要帮助
                standHelp: '',
                // 其它说明情况
                checkOther: '',
                // 本次检查项目
                checkProject: [],
                // 下次检查项目
                checkProjectNext: [],
                // 骨形成
                formation: '',
                // 骨形成检查时间
                formationTime: '',
                formationALP: '',
                formationBALP: '',
                formationOC: '',
                formationPICP: '',
                formationPINP: '',
                // 骨吸收
                absorb: '',
                // 骨吸收检查时间
                absorbTime: '',
                absorbTRACP: '',
                absorbSCTX: '',
                absorbPyr: '',
                absorbDPyr: '',
                absorbUCTX: '',
                absorbUNTX: '',
                // 骨代谢
                metabolize: '',
                // 骨代谢时间
                metabolizeTime: '',
                metabolizePTH: '',
                metabolizeCT: '',
                metabolizeCa: '',
                metabolizeP: '',
                metabolize25OHD3: '',
                metabolize125OHD3: '',
                // X检查
                lineRay: '',
                // X检查时间
                lineTime: '',
                // 骨折情况
                lineFracture: [],
                lineChest: [],
                lineMsg: '',
                // 血常规
                blood: '',
                // 血常规检查时间
                bloodTime: '',
                // 尿常规
                urine: '',
                // 尿常规检查时间
                urineTime: '',
                bloodWBC: '',
                bloodRBC: '',
                bloodHb: '',
                bloodPLT: '',
                bloodPINP: '',
                // 尿常规状态
                urineState: '',
                // 尿常规异常信息
                urineMsg: '',
                // 生化检查
                biochemistry: '',
                // 生化检查时间
                biochemistryTime: '',
                biochemistryCr: '',
                biochemistryUA: '',
                biochemistryUrea: '',
                biochemistryESR: '',
                // 甲状腺检查
                thyroid: '',
                // 甲状腺检查时间
                thyroidTime: '',
                thyroidTT3: '',
                thyroidTT4: '',
                thyroidFT3: '',
                thyroidFT4: '',
                thyroidTSH: '',
                // 是否开药
                prescribingDrugs: '',
                // 是否完善上次
                prescribingDrugsPre: '',
                sportMode: '',
                // 图片文件
                file: '',
                // 用药数据
                drugs: []
            },
            // 胸椎骨折情况
            lineChest: [
                {
                    name: '不详',
                    id: '1',
                    checkName: 'lineChest',
                    forId: 'lineChest1',
                    check: false
                },
                {
                    name: 'T1',
                    id: '2',
                    checkName: 'lineChest',
                    forId: 'lineChest2',
                    check: false
                },
                {
                    name: 'T2',
                    id: '3',
                    checkName: 'lineChest',
                    forId: 'lineChest3',
                    check: false
                },
                {
                    name: 'T3',
                    id: '4',
                    checkName: 'lineChest',
                    forId: 'lineChest4',
                    check: false
                },
                {
                    name: 'T4',
                    id: '5',
                    checkName: 'lineChest',
                    forId: 'lineChest5',
                    check: false
                },
                {
                    name: 'T5',
                    id: '6',
                    checkName: 'lineChest',
                    forId: 'lineChest6',
                    check: false
                },
                {
                    name: 'T6',
                    id: '7',
                    checkName: 'lineChest',
                    forId: 'lineChest7',
                    check: false
                },
                {
                    name: 'T7',
                    id: '8',
                    checkName: 'lineChest',
                    forId: 'lineChest8',
                    check: false
                },
                {
                    name: 'T8',
                    id: '9',
                    checkName: 'lineChest',
                    forId: 'lineChest9',
                    check: false
                },
                {
                    name: 'T9',
                    id: '10',
                    checkName: 'lineChest',
                    forId: 'lineChest10',
                    check: false
                },
                {
                    name: 'T10',
                    id: '11',
                    checkName: 'lineChest',
                    forId: 'lineChest11',
                    check: false
                },
                {
                    name: 'T11',
                    id: '12',
                    checkName: 'lineChest',
                    forId: 'lineChest12',
                    check: false
                },
                {
                    name: 'T12',
                    id: '13',
                    checkName: 'lineChest',
                    forId: 'lineChest13',
                    check: false
                }
            ],
            // 骨折
            lineFracture: [
                {
                    name: '无',
                    id: '1',
                    checkName: 'lineFracture',
                    forId: 'lineFracture1',
                    check: false
                },
                {
                    name: '胸椎',
                    id: '2',
                    checkName: 'lineFracture',
                    forId: 'lineFracture2',
                    check: false
                },
                {
                    name: '腰椎',
                    id: '3',
                    checkName: 'lineFracture',
                    forId: 'lineFracture3',
                    check: false
                },
                {
                    name: '骨盆',
                    id: '4',
                    checkName: 'lineFracture',
                    forId: 'lineFracture4',
                    check: false
                },
                {
                    name: '股骨干',
                    id: '5',
                    checkName: 'lineFracture',
                    forId: 'lineFracture5',
                    check: false
                },
                {
                    name: '股骨颈',
                    id: '6',
                    checkName: 'lineFracture',
                    forId: 'lineFracture6',
                    check: false
                },
                {
                    name: '粗隆间',
                    id: '7',
                    checkName: 'lineFracture',
                    forId: 'lineFracture7',
                    check: false
                },
                {
                    name: '胫骨',
                    id: '8',
                    checkName: 'lineFracture',
                    forId: 'lineFracture8',
                    check: false
                },
                {
                    name: '腓骨',
                    id: '9',
                    checkName: 'lineFracture',
                    forId: 'lineFracture9',
                    check: false
                },
                {
                    name: '桡骨',
                    id: '10',
                    checkName: 'lineFracture',
                    forId: 'lineFracture10',
                    check: false
                },
                {
                    name: '尺骨',
                    id: '11',
                    checkName: 'lineFracture',
                    forId: 'lineFracture11',
                    check: false
                },
                {
                    name: '肱骨',
                    id: '12',
                    checkName: 'lineFracture',
                    forId: 'lineFracture12',
                    check: false
                },
                {
                    name: '肋骨',
                    id: '13',
                    checkName: 'lineFracture',
                    forId: 'lineFracture13',
                    check: false
                },
                {
                    name: '脚踝',
                    id: '14',
                    checkName: 'lineFracture',
                    forId: 'lineFracture14',
                    check: false
                }
            ],
            // 本次检查项目
            checkProject: [
                {
                    name: '未作任何检查',
                    id: '1',
                    checkName: 'checkProject',
                    forId: 'checkProject1',
                    check: false
                },
                {
                    name: 'DXA',
                    id: '2',
                    checkName: 'checkProject',
                    forId: 'checkProject2',
                    check: false
                },
                {
                    name: '超声骨测量',
                    id: '3',
                    checkName: 'checkProject',
                    forId: 'checkProject3',
                    check: false
                },
                {
                    name: 'X线检查',
                    id: '4',
                    checkName: 'checkProject',
                    forId: 'checkProject4',
                    check: false
                },
                {
                    name: 'CT检查',
                    id: '5',
                    checkName: 'checkProject',
                    forId: 'checkProject5',
                    check: false
                },
                {
                    name: 'MRI检查',
                    id: '6',
                    checkName: 'checkProject',
                    forId: 'checkProject6',
                    check: false
                },
                {
                    name: '骨代谢检查',
                    id: '7',
                    checkName: 'checkProject',
                    forId: 'checkProject7',
                    check: false
                },
                {
                    name: '实验室检查',
                    id: '8',
                    checkName: 'checkProject',
                    forId: 'checkProject8',
                    check: false
                },
                {
                    name: '未作任何检查',
                    id: '9',
                    checkName: 'checkProject',
                    forId: 'checkProject9',
                    check: false
                }
            ],
            checkProjectNext: [
                {
                    name: '未作任何检查',
                    id: '1',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext1',
                    check: false
                },
                {
                    name: 'DXA',
                    id: '2',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext2',
                    check: false
                },
                {
                    name: '超声骨测量',
                    id: '3',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext3',
                    check: false
                },
                {
                    name: ':X线检查',
                    id: '4',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext4',
                    check: false
                },
                {
                    name: 'CT检查',
                    id: '5',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext5',
                    check: false
                },
                {
                    name: 'MRI检查',
                    id: '6',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext6',
                    check: false
                },
                {
                    name: '骨代谢检查',
                    id: '7',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext7',
                    check: false
                },
                {
                    name: '实验室检查',
                    id: '8',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext8',
                    check: false
                },
                {
                    name: '未作任何检查',
                    id: '9',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext9',
                    check: false
                }
            ],
            // 手术史
            operation: [
                {
                    name: '无',
                    id: '1',
                    checkName: 'operation',
                    forId: 'operation1',
                    check: false
                },
                {
                    name: '子宫切除',
                    id: '2',
                    checkName: 'operation',
                    forId: 'operation2',
                    check: false
                },
                {
                    name: '卵巢切除',
                    id: '3',
                    checkName: 'operation',
                    forId: 'operation3',
                    check: false
                },
                {
                    name: '甲状腺切除',
                    id: '4',
                    checkName: 'operation',
                    forId: 'operation4',
                    check: false
                },
                {
                    name: '甲状旁腺切除',
                    id: '5',
                    checkName: 'operation',
                    forId: 'operation5',
                    check: false
                },
                {
                    name: '使用过骨水泥',
                    id: '6',
                    checkName: 'operation',
                    forId: 'operation6',
                    check: false
                },
                {
                    name: '其他',
                    id: '7',
                    checkName: 'operation',
                    forId: 'operation7',
                    check: false
                }
            ],
            // 其他药物使用情况
            otherDrug: [
                {
                    name: '无',
                    id: '1',
                    checkName: 'otherDrug',
                    forId: 'otherDrug1',
                    check: false
                },
                {
                    name: '抗癫痫药物',
                    id: '2',
                    checkName: 'otherDrug',
                    forId: 'otherDrug2',
                    check: false
                },
                {
                    name: '细胞毒或免疫抑制剂',
                    id: '3',
                    checkName: 'otherDrug',
                    forId: 'otherDrug3',
                    check: false
                },
                {
                    name: '铝制剂',
                    id: '4',
                    checkName: 'otherDrug',
                    forId: 'otherDrug4',
                    check: false
                },
                {
                    name: '锂制剂',
                    id: '5',
                    checkName: 'otherDrug',
                    forId: 'otherDrug5',
                    check: false
                },
                {
                    name: '肝素',
                    id: '6',
                    checkName: 'otherDrug',
                    forId: 'otherDrug6',
                    check: false
                },
                {
                    name: '芳香化酶抑制剂',
                    id: '7',
                    checkName: 'otherDrug',
                    forId: 'otherDrug7',
                    check: false
                },
                {
                    name: '其他',
                    id: '8',
                    checkName: 'otherDrug',
                    forId: 'otherDrug8',
                    check: false
                }
            ],
            // 饮用类型数组
            drinkingType: [
                {
                    name: '白开水',
                    id: '1',
                    checkName: 'drinkingType',
                    forId: 'drinkingType1',
                    check: false
                },
                {
                    name: '浓茶水',
                    id: '2',
                    checkName: 'drinkingType',
                    forId: 'drinkingType2',
                    check: false
                },
                {
                    name: '乳制品',
                    id: '3',
                    checkName: 'drinkingType',
                    forId: 'drinkingType3',
                    check: false
                },
                {
                    name: '碳酸饮料',
                    id: '4',
                    checkName: 'drinkingType',
                    forId: 'drinkingType4',
                    check: false
                },
                {
                    name: '咖啡',
                    id: '5',
                    checkName: 'drinkingType',
                    forId: 'drinkingType5',
                    check: false
                },
                {
                    name: '其它饮料',
                    id: '6',
                    checkName: 'drinkingType',
                    forId: 'drinkingType6',
                    check: false
                }
            ],
            // 最常用锻炼方式
            sportMode: [
                {
                    name: '散步',
                    id: '1',
                    forId: 'sportMode1',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '快步走',
                    id: '2',
                    forId: 'sportMode2',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '慢跑',
                    id: '3',
                    forId: 'sportMode3',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '跳舞',
                    id: '4',
                    forId: 'sportMode4',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '太极拳',
                    id: '5',
                    forId: 'sportMode5',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '爬山/楼梯',
                    id: '6',
                    forId: 'sportMode6',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '太极拳',
                    id: '7',
                    forId: 'sportMode7',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '健身器材',
                    id: '8',
                    forId: 'sportMode8',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '打球',
                    id: '9',
                    forId: 'sportMode9',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '游泳',
                    id: '10',
                    forId: 'sportMode10',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '其他',
                    id: '11',
                    forId: 'sportMode11',
                    checkName: 'sportMode',
                    check: false
                }
            ],
            reads: [],
            checkData2: [],
            testTime0: [],
            reads1: [],
            checkData1: [],
            testTime1: [],
            reads2: [],
            testTime2: [],
            reads3: [],
            checkData3: [],
            testTime3: [],
            reads4: [],
            checkData4: [],
            testTime4: [],
            reads5: [],
            checkData5: [],
            testTime5: [],
            //// 随访记录模块
            blSaveDisabled: false,
            blLineChestSelect: [],
            blMedical: false,
            blMedicalList: [],
            blBMI: '',
            blType: '',
            blChemistryName: '',
            blProductName: '',
            blConsumption: '',
            blFrequency: '',
            blMode: '',
            blUseStop: '',
            blDXA: false,
            blScore: false,
            blShowCurd: false,
            blIllnessData: [
                {
                    name: '既往体健',
                    id: '',
                    list: []
                },
                {
                    name: '风湿系统疾病',
                    id: 'rheumatismType',
                    list: [
                        {
                            name: '类风湿性关节炎',
                            id: '1',
                            forId: 'ysxjb1',
                            checked: false
                        },
                        {
                            name: '骨关节炎',
                            id: '2',
                            forId: 'ysxjb2',
                            checked: false
                        },
                        {
                            name: '脊椎关节炎',
                            id: '3',
                            forId: 'ysxjb3',
                            checked: false
                        },
                        {
                            name: '血管炎',
                            id: '4',
                            forId: 'ysxjb4',
                            checked: false
                        },
                        {
                            name: '原发性干燥综合征',
                            id: '5',
                            forId: 'ysxjb5',
                            checked: false
                        },
                        {
                            name: '系统性红斑狼疮',
                            id: '6',
                            forId: 'ysxjb6',
                            checked: false
                        },
                        {
                            name: '系统性硬化症',
                            id: '7',
                            forId: 'ysxjb7',
                            checked: false
                        },
                        {
                            name: '多发性肌炎和皮肌炎',
                            id: '8',
                            forId: 'ysxjb8',
                            checked: false
                        },
                        {
                            name: '自身免疫性肝病',
                            id: '9',
                            forId: 'ysxjb9',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '10',
                            forId: 'ysxjb10',
                            checked: false
                        }
                    ]
                },
                {
                    name: '内分泌及代谢系统疾病',
                    id: 'endocrineType',
                    list: [
                        {
                            name: '甲状腺功能亢进症',
                            id: '1',
                            forId: 'nfm1',
                            checked: false
                        },
                        {
                            name: '甲状旁腺功能亢进症',
                            id: '2',
                            forId: 'nfm2',
                            checked: false
                        },
                        {
                            name: '库欣综合征',
                            id: '3',
                            forId: 'nfm3',
                            checked: false
                        },
                        {
                            name: '1型糖尿病',
                            id: '4',
                            forId: 'nfm4',
                            checked: false
                        },
                        {
                            name: '2型糖尿病',
                            id: '5',
                            forId: 'nfm5',
                            checked: false
                        },
                        {
                            name: '性腺功能减退',
                            id: '6',
                            forId: 'nfm6',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '7',
                            forId: 'nfm7',
                            checked: false
                        }
                    ]
                },
                {
                    name: '循环系统疾病',
                    id: 'circulatoryType',
                    list: [
                        {
                            name: '高血压',
                            id: '1',
                            forId: 'xhxt1',
                            checked: false
                        },
                        {
                            name: '冠状动脉粥样硬化心脏病',
                            id: '2',
                            forId: 'xhxt2',
                            checked: false
                        },
                        {
                            name: '高血脂症',
                            id: '3',
                            forId: 'xhxt3',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '4',
                            forId: 'xhxt',
                            checked: false
                        }
                    ]
                },
                {
                    name: '呼吸系统疾病',
                    id: 'breathingType',
                    list: [
                        {
                            name: '支气管哮喘',
                            id: '1',
                            forId: 'hxxt1',
                            checked: false
                        },
                        {
                            name: '慢性阻塞性肺疾病',
                            id: '2',
                            forId: 'hxxt2',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '3',
                            forId: 'hxxt3',
                            checked: false
                        },
                    ]
                },
                {
                    name: '神经及精神系统疾病',
                    id: 'nerveType',
                    list: [
                        {
                            name: '神经性厌食症',
                            id: '1',
                            forId: 'sjxt1',
                            checked: false
                        },
                        {
                            name: '脑血管病',
                            id: '2',
                            forId: 'sjxt2',
                            checked: false
                        },
                        {
                            name: '重症肌无力',
                            id: '3',
                            forId: 'sjxt3',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '4',
                            forId: 'sjxt4',
                            checked: false
                        },
                    ]
                },
                {
                    name: '消化系统疾病',
                    id: 'digestionType',
                    list: [
                        {
                            name: '肝硬化',
                            id: '1',
                            forId: 'xhxtjb1',
                            checked: false
                        },
                        {
                            name: '吸收不良综合征',
                            id: '2',
                            forId: 'xhxtjb2',
                            checked: false
                        },
                        {
                            name: '炎症性肠病（溃疡性结肠炎；克罗恩病）',
                            id: '3',
                            forId: 'xhxtjb3',
                            checked: false
                        },
                        {
                            name: '乳糜泻',
                            id: '4',
                            forId: 'xhxtjb4',
                            checked: false
                        },
                        {
                            name: '胃部大切除术后',
                            id: '5',
                            forId: 'xhxtjb5',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '6',
                            forId: 'xhxtjb6',
                            checked: false
                        },
                    ]
                },
                {
                    name: '泌尿系统疾病',
                    id: 'urineType',
                    list: [
                        {
                            name: '慢性肾功能不全或衰竭',
                            id: '1',
                            forId: 'mnxt1',
                            checked: false
                        },
                        {
                            name: '肾小管性疾病',
                            id: '2',
                            forId: 'mnxt2',
                            checked: false
                        },
                        {
                            name: '原发性胃小球肾病',
                            id: '3',
                            forId: 'mnxt3',
                            checked: false
                        },
                        {
                            name: '肾淀粉样变性',
                            id: '4',
                            forId: 'mn4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'mn5',
                            checked: false
                        }
                    ]
                },
                {
                    name: '血液系统疾病',
                    id: 'bloodType',
                    list: [
                        {
                            name: '白血病',
                            id: '1',
                            forId: 'xyxt1',
                            checked: false
                        },
                        {
                            name: '骨髓增长异常综合征',
                            id: '2',
                            forId: 'xyxt2',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '3',
                            forId: 'xyxt3',
                            checked: false
                        }
                    ]
                },
                {
                    name: '先天性及遗传性疾病',
                    id: 'inheritanceType',
                    list: [
                        {
                            name: '马凡综合征',
                            id: '1',
                            forId: 'xtxyc1',
                            checked: false
                        },
                        {
                            name: '血色病',
                            id: '2',
                            forId: 'xtxyc2',
                            checked: false
                        },
                        {
                            name: '卟啉病',
                            id: '3',
                            forId: 'xtxyc3',
                            checked: false
                        },
                        {
                            name: '成骨不全',
                            id: '4',
                            forId: 'xtxyc4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'xtxyc5',
                            checked: false
                        }
                    ]
                },
                {
                    name: '其他',
                    id: 'otherType',
                    list: [
                        {
                            name: '原发性骨肿瘤',
                            id: '1',
                            forId: 'other1',
                            checked: false
                        },
                        {
                            name: '继发性骨肿瘤',
                            id: '2',
                            forId: 'other2',
                            checked: false
                        },
                        {
                            name: '乳腺癌',
                            id: '3',
                            forId: 'other3',
                            checked: false
                        },
                        {
                            name: '艾滋病',
                            id: '4',
                            forId: 'other4',
                            checked: false
                        },
                        {
                            name: '其他',
                            id: '5',
                            forId: 'other5',
                            checked: false
                        }
                    ]
                }
            ],
            blId: '',
            blCheckData: {
                doctorName: '',
                accompanyTime: '',
                accompanyType: '',
                doctorId: '',
                nextAccompanyTime: '',
                medicalList: [],
                linePhoto: '',
                // 当点击修改的时候才有的对应 id
                id: '',
                // 身份证
                idCard: '',
                // 患者症状描述
                msg: '',
                // 是否吸烟
                smoke: '',
                // 是否饮酒
                drink: '',
                // 膳食情况
                diet: '',
                // 引用类型
                drinkingType: [],
                // 睡眠时间
                sleepTime: '',
                // 日晒时间
                sunTime: '',
                // 锻炼频率
                sportTimes: '',
                // 锻炼时间
                sportTime: '',
                walkMsg: '',
                // 其他生活习惯
                standHelp: '',
                liveMsg: '',
                // 风湿疾病
                rheumatismType: [],
                // 内分泌及代谢系统疾病
                endocrineType: [],
                // 循环系统疾病
                circulatoryType: [],
                // 呼吸系统疾病
                breathingType: [],
                // 神经及精神系统疾病
                nerveType: [],
                // 消化系统疾病
                digestionType: [],
                // 泌尿系统疾病
                urineType: [],
                // 血液系统疾病
                bloodType: [],
                // 先天性及遗传性疾病
                inheritanceType: [],
                // 其他疾病
                otherType: [],
                // 抗骨松药物
                drug: '',
                // 肾上腺皮质激素
                hormone: '',
                // 性激素及其相关药物
                sexHomone: '',
                // 其他药物使用情况
                otherDrug: [],
                // 骨折
                fracture: '',
                // 手术史
                operation: [],
                // 健康疾病情况
                healthy: '',
                // 婚姻及生育情况
                marriage: '',
                // 家庭成员病发情况
                family: '',
                // 身体检查情况
                body: '',
                // 判定病症情况
                disease: '',
                // 随诊日期
                checkTime: '',
                // 系首诊后
                afterDate: '',
                // 随诊类型
                checkType: '',
                // 身高
                height: '',
                // 体重
                weight: '',
                // 诊疗结论
                checkData: '',
                // 是否遵医嘱用药
                usdDrug: '',
                // 腰背痛
                waistType: '',
                // 腰背痛描述
                waistMsg: '',
                // 骨痛
                boneType: '',
                // 骨痛描述
                boneMsg: '',
                // 肌肉抽搐
                muscleType: '',
                // 肌肉抽搐描述
                muscleMsg: '',
                // 乏力
                powerType: '',
                // 乏力描述
                powerMsg: '',
                // 行走距离
                walkType: '',
                // 上认诊疗后有无骨折
                newFracture: '',
                // 行走状态
                walkState: '',
                // 站立 起来是否需要帮助
                standHelp: '',
                // 其它说明情况
                checkOther: '',
                // 本次检查项目
                checkProject: [],
                // 下次检查项目
                checkProjectNext: [],
                // 骨形成
                formation: '',
                // 骨形成检查时间
                formationTime: '',
                formationALP: '',
                formationBALP: '',
                formationOC: '',
                formationPICP: '',
                formationPINP: '',
                // 骨吸收
                absorb: '',
                // 骨吸收检查时间
                absorbTime: '',
                absorbTRACP: '',
                absorbSCTX: '',
                absorbPyr: '',
                absorbDPyr: '',
                absorbUCTX: '',
                absorbUNTX: '',
                // 骨代谢
                metabolize: '',
                // 骨代谢时间
                metabolizeTime: '',
                metabolizePTH: '',
                metabolizeCT: '',
                metabolizeCa: '',
                metabolizeP: '',
                metabolize25OHD3: '',
                metabolize125OHD3: '',
                // X检查
                lineRay: '',
                // X检查时间
                lineTime: '',
                // 骨折情况
                lineFracture: [],
                lineChest: [],
                lineMsg: '',
                // 血常规
                blood: '',
                // 血常规检查时间
                bloodTime: '',
                // 尿常规
                urine: '',
                // 尿常规检查时间
                urineTime: '',
                bloodWBC: '',
                bloodRBC: '',
                bloodHb: '',
                bloodPLT: '',
                bloodPINP: '',
                // 尿常规状态
                urineState: '',
                // 尿常规异常信息
                urineMsg: '',
                // 生化检查
                biochemistry: '',
                // 生化检查时间
                biochemistryTime: '',
                biochemistryCr: '',
                biochemistryUA: '',
                biochemistryUrea: '',
                biochemistryESR: '',
                // 甲状腺检查
                thyroid: '',
                // 甲状腺检查时间
                thyroidTime: '',
                thyroidTT3: '',
                thyroidTT4: '',
                thyroidFT3: '',
                thyroidFT4: '',
                thyroidTSH: '',
                // 是否开药
                prescribingDrugs: '',
                // 是否完善上次
                prescribingDrugsPre: '',
                sportMode: '',
                // 图片文件
                file: '',
                // 用药数据
                drugs: []
            },
            // 胸椎骨折情况
            blLineChest: [
                {
                    name: '不详',
                    id: '1',
                    checkName: 'lineChest',
                    forId: 'lineChest1',
                    check: false
                },
                {
                    name: 'T1',
                    id: '2',
                    checkName: 'lineChest',
                    forId: 'lineChest2',
                    check: false
                },
                {
                    name: 'T2',
                    id: '3',
                    checkName: 'lineChest',
                    forId: 'lineChest3',
                    check: false
                },
                {
                    name: 'T3',
                    id: '4',
                    checkName: 'lineChest',
                    forId: 'lineChest4',
                    check: false
                },
                {
                    name: 'T4',
                    id: '5',
                    checkName: 'lineChest',
                    forId: 'lineChest5',
                    check: false
                },
                {
                    name: 'T5',
                    id: '6',
                    checkName: 'lineChest',
                    forId: 'lineChest6',
                    check: false
                },
                {
                    name: 'T6',
                    id: '7',
                    checkName: 'lineChest',
                    forId: 'lineChest7',
                    check: false
                },
                {
                    name: 'T7',
                    id: '8',
                    checkName: 'lineChest',
                    forId: 'lineChest8',
                    check: false
                },
                {
                    name: 'T8',
                    id: '9',
                    checkName: 'lineChest',
                    forId: 'lineChest9',
                    check: false
                },
                {
                    name: 'T9',
                    id: '10',
                    checkName: 'lineChest',
                    forId: 'lineChest10',
                    check: false
                },
                {
                    name: 'T10',
                    id: '11',
                    checkName: 'lineChest',
                    forId: 'lineChest11',
                    check: false
                },
                {
                    name: 'T11',
                    id: '12',
                    checkName: 'lineChest',
                    forId: 'lineChest12',
                    check: false
                },
                {
                    name: 'T12',
                    id: '13',
                    checkName: 'lineChest',
                    forId: 'lineChest13',
                    check: false
                }
            ],
            // 骨折
            blLineFracture: [
                {
                    name: '无',
                    id: '1',
                    checkName: 'lineFracture',
                    forId: 'lineFracture1',
                    check: false
                },
                {
                    name: '胸椎',
                    id: '2',
                    checkName: 'lineFracture',
                    forId: 'lineFracture2',
                    check: false
                },
                {
                    name: '腰椎',
                    id: '3',
                    checkName: 'lineFracture',
                    forId: 'lineFracture3',
                    check: false
                },
                {
                    name: '骨盆',
                    id: '4',
                    checkName: 'lineFracture',
                    forId: 'lineFracture4',
                    check: false
                },
                {
                    name: '股骨干',
                    id: '5',
                    checkName: 'lineFracture',
                    forId: 'lineFracture5',
                    check: false
                },
                {
                    name: '股骨颈',
                    id: '6',
                    checkName: 'lineFracture',
                    forId: 'lineFracture6',
                    check: false
                },
                {
                    name: '粗隆间',
                    id: '7',
                    checkName: 'lineFracture',
                    forId: 'lineFracture7',
                    check: false
                },
                {
                    name: '胫骨',
                    id: '8',
                    checkName: 'lineFracture',
                    forId: 'lineFracture8',
                    check: false
                },
                {
                    name: '腓骨',
                    id: '9',
                    checkName: 'lineFracture',
                    forId: 'lineFracture9',
                    check: false
                },
                {
                    name: '桡骨',
                    id: '10',
                    checkName: 'lineFracture',
                    forId: 'lineFracture10',
                    check: false
                },
                {
                    name: '尺骨',
                    id: '11',
                    checkName: 'lineFracture',
                    forId: 'lineFracture11',
                    check: false
                },
                {
                    name: '肱骨',
                    id: '12',
                    checkName: 'lineFracture',
                    forId: 'lineFracture12',
                    check: false
                },
                {
                    name: '肋骨',
                    id: '13',
                    checkName: 'lineFracture',
                    forId: 'lineFracture13',
                    check: false
                },
                {
                    name: '脚踝',
                    id: '14',
                    checkName: 'lineFracture',
                    forId: 'lineFracture14',
                    check: false
                }
            ],
            // 本次检查项目
            blCheckProject: [
                {
                    name: '未作任何检查',
                    id: '1',
                    checkName: 'checkProject',
                    forId: 'checkProject1',
                    check: false
                },
                {
                    name: 'DXA',
                    id: '2',
                    checkName: 'checkProject',
                    forId: 'checkProject2',
                    check: false
                },
                {
                    name: '超声骨测量',
                    id: '3',
                    checkName: 'checkProject',
                    forId: 'checkProject3',
                    check: false
                },
                {
                    name: 'X线检查',
                    id: '4',
                    checkName: 'checkProject',
                    forId: 'checkProject4',
                    check: false
                },
                {
                    name: 'CT检查',
                    id: '5',
                    checkName: 'checkProject',
                    forId: 'checkProject5',
                    check: false
                },
                {
                    name: 'MRI检查',
                    id: '6',
                    checkName: 'checkProject',
                    forId: 'checkProject6',
                    check: false
                },
                {
                    name: '骨代谢检查',
                    id: '7',
                    checkName: 'checkProject',
                    forId: 'checkProject7',
                    check: false
                },
                {
                    name: '实验室检查',
                    id: '8',
                    checkName: 'checkProject',
                    forId: 'checkProject8',
                    check: false
                },
                {
                    name: '未作任何检查',
                    id: '9',
                    checkName: 'checkProject',
                    forId: 'checkProject9',
                    check: false
                }
            ],
            blCheckProjectNext: [
                {
                    name: '未作任何检查',
                    id: '1',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext1',
                    check: false
                },
                {
                    name: 'DXA',
                    id: '2',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext2',
                    check: false
                },
                {
                    name: '超声骨测量',
                    id: '3',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext3',
                    check: false
                },
                {
                    name: ':X线检查',
                    id: '4',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext4',
                    check: false
                },
                {
                    name: 'CT检查',
                    id: '5',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext5',
                    check: false
                },
                {
                    name: 'MRI检查',
                    id: '6',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext6',
                    check: false
                },
                {
                    name: '骨代谢检查',
                    id: '7',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext7',
                    check: false
                },
                {
                    name: '实验室检查',
                    id: '8',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext8',
                    check: false
                },
                {
                    name: '未作任何检查',
                    id: '9',
                    checkName: 'checkProject',
                    forId: 'checkProjectNext9',
                    check: false
                }
            ],
            // 手术史
            blOperation: [
                {
                    name: '无',
                    id: '1',
                    checkName: 'operation',
                    forId: 'operation1',
                    check: false
                },
                {
                    name: '子宫切除',
                    id: '2',
                    checkName: 'operation',
                    forId: 'operation2',
                    check: false
                },
                {
                    name: '卵巢切除',
                    id: '3',
                    checkName: 'operation',
                    forId: 'operation3',
                    check: false
                },
                {
                    name: '甲状腺切除',
                    id: '4',
                    checkName: 'operation',
                    forId: 'operation4',
                    check: false
                },
                {
                    name: '甲状旁腺切除',
                    id: '5',
                    checkName: 'operation',
                    forId: 'operation5',
                    check: false
                },
                {
                    name: '使用过骨水泥',
                    id: '6',
                    checkName: 'operation',
                    forId: 'operation6',
                    check: false
                },
                {
                    name: '其他',
                    id: '7',
                    checkName: 'operation',
                    forId: 'operation7',
                    check: false
                }
            ],
            // 其他药物使用情况
            blOtherDrug: [
                {
                    name: '无',
                    id: '1',
                    checkName: 'otherDrug',
                    forId: 'otherDrug1',
                    check: false
                },
                {
                    name: '抗癫痫药物',
                    id: '2',
                    checkName: 'otherDrug',
                    forId: 'otherDrug2',
                    check: false
                },
                {
                    name: '细胞毒或免疫抑制剂',
                    id: '3',
                    checkName: 'otherDrug',
                    forId: 'otherDrug3',
                    check: false
                },
                {
                    name: '铝制剂',
                    id: '4',
                    checkName: 'otherDrug',
                    forId: 'otherDrug4',
                    check: false
                },
                {
                    name: '锂制剂',
                    id: '5',
                    checkName: 'otherDrug',
                    forId: 'otherDrug5',
                    check: false
                },
                {
                    name: '肝素',
                    id: '6',
                    checkName: 'otherDrug',
                    forId: 'otherDrug6',
                    check: false
                },
                {
                    name: '芳香化酶抑制剂',
                    id: '7',
                    checkName: 'otherDrug',
                    forId: 'otherDrug7',
                    check: false
                },
                {
                    name: '其他',
                    id: '8',
                    checkName: 'otherDrug',
                    forId: 'otherDrug8',
                    check: false
                }
            ],
            // 饮用类型数组
            blDrinkingType: [
                {
                    name: '白开水',
                    id: '1',
                    checkName: 'drinkingType',
                    forId: 'drinkingType1',
                    check: false
                },
                {
                    name: '浓茶水',
                    id: '2',
                    checkName: 'drinkingType',
                    forId: 'drinkingType2',
                    check: false
                },
                {
                    name: '乳制品',
                    id: '3',
                    checkName: 'drinkingType',
                    forId: 'drinkingType3',
                    check: false
                },
                {
                    name: '碳酸饮料',
                    id: '4',
                    checkName: 'drinkingType',
                    forId: 'drinkingType4',
                    check: false
                },
                {
                    name: '咖啡',
                    id: '5',
                    checkName: 'drinkingType',
                    forId: 'drinkingType5',
                    check: false
                },
                {
                    name: '其它饮料',
                    id: '6',
                    checkName: 'drinkingType',
                    forId: 'drinkingType6',
                    check: false
                }
            ],
            // 最常用锻炼方式
            blSportMode: [
                {
                    name: '散步',
                    id: '1',
                    forId: 'sportMode1',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '快步走',
                    id: '2',
                    forId: 'sportMode2',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '慢跑',
                    id: '3',
                    forId: 'sportMode3',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '跳舞',
                    id: '4',
                    forId: 'sportMode4',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '太极拳',
                    id: '5',
                    forId: 'sportMode5',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '爬山/楼梯',
                    id: '6',
                    forId: 'sportMode6',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '太极拳',
                    id: '7',
                    forId: 'sportMode7',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '健身器材',
                    id: '8',
                    forId: 'sportMode8',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '打球',
                    id: '9',
                    forId: 'sportMode9',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '游泳',
                    id: '10',
                    forId: 'sportMode10',
                    checkName: 'sportMode',
                    check: false
                },
                {
                    name: '其他',
                    id: '11',
                    forId: 'sportMode11',
                    checkName: 'sportMode',
                    check: false
                }
            ],
            blReads: [],
            blCheckData2: [],
            blTestTime: [],
            blReads1: [],
            blCheckData1: [],
            blTestTime1: []
        },
        methods: {
            // 计算时间差值
            DateDifference(faultDate, completeTime) {
                // let d1 = new Date(faultDate);
                // let d2 = new Date(completeTime);
                var stime = new Date(faultDate).getTime();
                var etime = new Date(completeTime).getTime();
                var usedTime = etime - stime;  //两个时间戳相差的毫秒数
                var days = Math.floor(usedTime / (24 * 3600 * 1000));
                //计算出小时数
                var leave1 = usedTime % (24 * 3600 * 1000);    //计算天数后剩余的毫秒数
                var hours = Math.floor(leave1 / (3600 * 1000));
                //计算相差分钟数
                var leave2 = leave1 % (3600 * 1000);        //计算小时数后剩余的毫秒数
                var minutes = Math.floor(leave2 / (60 * 1000));
                // var time = days + "天"+hours+"时"+minutes+"分";
                var time = days;
                return time;
            },
            switchTab(id) {
                var arr = ["illnessInfo", "riskScreening", "diagnostic", "accompany"];
                for (var i = 0; i < 4; i++) {
                    if (arr[i] == id) {
                        $('a[href="#' + arr[i] + '"]').parent().addClass('active');
                        $('a[href="#' + arr[i] + '"]').parent().siblings().removeClass('active');
                        $("#" + arr[i] + "").show();
                    } else {
                        $("#" + arr[i] + "").hide();
                    }
                }
            },
            toDate(num) {//Mon Mar 11 2019 13:41:00 GMT+0800
                num = num + ""; //给字符串后就一个空格
                var date = "";
                var month = new Array();
                month["Jan"] = 1;
                month["Feb"] = 2;
                month["Mar"] = 3;
                month["Apr"] = 4;
                month["May"] = 5;
                month["Jun"] = 6;
                month["Jul"] = 7;
                month["Aug"] = 8;
                month["Sep"] = 9;
                month["Oct"] = 10;
                month["Nov"] = 11;
                month["Dec"] = 12;
                var week = new Array();
                week["Mon"] = "一";
                week["Tue"] = "二";
                week["Wed"] = "三";
                week["Thu"] = "四";
                week["Fri"] = "五";
                week["Sat"] = "六";
                week["Sun"] = "日";
                var str = num.split(" "); //根据空格组成数组
                date = str[3] + "-"; //就是在年后面加一个“-”
                //通过修改这里可以得到你想要的格式
                var m = month[str[1]];
                if (m < 10) {
                    date = date + "0" + m + "-" + str[2];
                } else {
                    date = date + m + "-" + str[2];
                }
                return date;
            },
            getNowFormatDate() {
                var date = new Date();
                var seperator1 = "-";
                var year = date.getFullYear();
                var month = date.getMonth() + 1;
                var strDate = date.getDate();
                if (month >= 1 && month <= 9) {
                    month = "0" + month;
                }
                if (strDate >= 0 && strDate <= 9) {
                    strDate = "0" + strDate;
                }
                var currentdate = year + seperator1 + month + seperator1 + strDate;
                return currentdate;
            },
            //获取指定日期前七天
            getBeforeWeek(d) {
                d = new Date(d);
                d = +d - 1000 * 60 * 60 * 24 * 6;
                d = new Date(d);
                var year = d.getFullYear();
                var mon = d.getMonth() + 1;
                var day = d.getDate();
                s = year + "-" + (mon < 10 ? ('0' + mon) : mon) + "-" + (day < 10 ? ('0' + day) : day);
                return s;
            },
            <%--// 修改特殊处理备注--%>
            updateSpecRemark() {
                var idCard = href.split('&')[0].split('=')[1]
                if ($('#specRemark').attr('disabled') == 'disabled') {
                    $('#specRemark').removeAttr('disabled');
                    $('#specRemark').focus();
                    $('#updateSpecRemark').text('保存')
                } else {
                    // 修改特殊处理备注
                    $.ajax({
                        url: "${URL_PATIENT_UPDATESPECREMARK}",
                        data: {
                            idcard: idCard,
                            specRemark: $('#specRemark').val()
                        },
                        type: 'post',
                        jsonType: 'json',
                        success: function (data) {
                            $('#specRemark').attr('disabled', 'disabled');
                            $('#updateSpecRemark').text('修改');
                        }
                    })
                }
            },
            // 获取近一周高血压数据
            getWeekBpData() {
                var that = this;
                var href = location.search.split('?')[1];
                var idCard = href.split('&')[0].split('=')[1];
                var url = "${URL_PATIENT_BPINFO}?idCard=" + idCard;
                var table = $('#example5').DataTable({
                    "dom": "<'row'<'col-xs-2'l><'#mytool.col-xs-10'><'col-xs-6'f>r>" +
                        "t" +
                        "<'row'<'col-xs-6'p>>",
                    "bFilter": false,//去掉搜索框
                    "bAutoWidth": true, //自适应宽度
                    "bPaginate": true, //翻页功能
                    "bSort": true, //排序功能
                    "bAutoWidth": true,//自动宽度
                    "info": false,
                    "searching": false, //去掉搜索框方法一
                    "destroy": true,
                    "oPaginate": false,
                    "bServerSide": true,
                    "lengthChange": false,   //选择每页显示多少条数据，下拉选项
                    "paginationType": "full_numbers",      //详细分页组，可以支持直接跳转到某页
                    "lengthMenu": [10],
                    "sAjaxSource": url,
                    "sAjaxDataProp": "bpList",//查询后，返回的集合
                    "fnServerData": function (sSource, aoData, fnCallback) {  //查询条件
                        aoData.push(
                            {
                                "name": "beginTime",
                                "value": $('#beginDate').val()
                            },
                            {
                                "name": "endTime",
                                "value": $('#endDate').val()
                            }
                        ),
                            $.ajax({
                                "dataType": 'json',
                                "url": sSource,
                                "type": 'post',
                                "data": aoData,
                                "success": function (resp) {
                                    var map = {},
                                        dest = [];
                                    testtime = [];
                                    szy = [];
                                    xl = [];
                                    ssy = [];
                                    if (resp.data.bpList != null) {
                                        var arr = resp.data.bpList;
                                        for (var i = 0; i < arr.length; i++) {
                                            var ai = arr[i];
                                            // 舒张压
                                            if (arr[i].testItemCode === "104001") {
                                                szy.push(ai.testValue)
                                                testtime.push(ai.testTime)
                                            }
                                            // 收缩压
                                            if (arr[i].testItemCode === "104002") {
                                                ssy.push(ai.testValue)
                                            }
                                            // 心率
                                            if (arr[i].testItemCode === "104003") {
                                                xl.push(ai.testValue)
                                            }
                                        }
                                        for (var a = 0; a < szy.length; a++) {
                                            dest.push({
                                                change: "",
                                                time: testtime[a],
                                                ssy: ssy[a],
                                                szy: szy[a],
                                                xl: xl[a]
                                            })
                                            if (dest[a].ssy >= 90 || dest[a].szy >= 140 || dest[a].ssy < 60 || dest[a].szy < 90) {
                                                dest[a].change = '异常'
                                            } else {
                                                dest[a].change = ''
                                            }
                                        }
                                        resp.data.bpList = dest;
                                        // resp.data.iTotalDisplayRecords = dest.length;
                                        resp.data.iTotalDisplayRecords = resp.data.iTotalDisplayRecords / 3; // 总记录数 / 3
                                        fnCallback(resp.data)
                                        // 获取当前时间戳
                                        /*
                                        var timestamp = Date.parse(new Date());
                                        var date = Date.parse(testtime[0]);
                                        if( that.DateDifference(date, timestamp) > 7 ){
                                            $('#bpRemark').text('您已一周未进行血压数据测量');
                                            $('#bpRemark').css("color","red");
                                        }
                                        */
                                    } else {
                                        resp.data.bpList = []
                                        fnCallback(resp.data)
                                        // $('#bpRemark').text('您已一周未进行血压数据测量');
                                        // $('#bpRemark').css("color","red");
                                    }
                                }
                            });
                    },
                    "aoColumns": [{
                        "targets": 0,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            $(nTd).html('<span style="color:red">' + oData.change + '</span>')
//                        $(nTd).text(oData.change)
                        }
                    }, {
                        "mDataProp": "time"
                    }, {
                        "targets": 1,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.szy === undefined) {
                                $(nTd).text("")
                            } else {
                                if (oData.szy >= 140 || oData.szy < 90) {
                                    $(nTd).html('<span style="color:red">' + oData.szy + '</span>')
                                } else {
                                    $(nTd).text(oData.szy)
                                }
                            }
                        }
                    }, {
                        "targets": 2,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.ssy === undefined) {
                                $(nTd).text("")
                            } else {
                                if (oData.ssy >= 90 || oData.ssy < 60) {
                                    $(nTd).html('<span style="color:red">' + oData.ssy + '</span>')
                                } else {
                                    $(nTd).text(oData.ssy)
                                }
                            }
                        }
                    }, {
                        "targets": 3,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.xl === undefined) {
                                $(nTd).text("")
                            } else {
                                $(nTd).text(oData.xl)
                            }
                        }
                    }],
                    "oLanguage": {//插件的汉化
                        "sLengthMenu": "32",
                        "sZeroRecords": "抱歉， 没有找到",
                        "sInfoEmpty": "没有数据",
                        "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
                        "oPaginate": {
                            "sFirst": "",
                            "sPrevious": "<b>上一页<b>",
                            "sLast": "",
                            "sNext": "<i>下一页</i>"

                        },
                        "sZeroRecords": "没有检索到数据",
                        "sProcessing": "<img src='' />",
                        "sSearch": "搜索"
                    }
                });
            },
            // 获取近一周糖尿病数据
            getWeekBsData() {
                var that = this;
                var href = location.search.split('?')[1];
                var idCard = href.split('&')[0].split('=')[1];
                var url = '${URL_PATIENT_BGREPORT}?idCard=' + idCard
                var bsTable = $('#example6').DataTable({
                    "dom": "<'row'<'col-xs-2'l><'#mytool.col-xs-10'><'col-xs-6'f>r>" +
                        "t" +
                        "<'row'<''i><'col-xs-6'p>>",
                    "bFilter": false,//去掉搜索框
                    "bAutoWidth": true, //自适应宽度
                    "bPaginate": true, //翻页功能
                    "bSort": true, //排序功能
                    "bAutoWidth": true,//自动宽度
                    "info": false,
                    "searching": false, //去掉搜索框方法一
                    "destroy": true,
                    "oPaginate": false,
                    "bServerSide": true,
                    "lengthChange": false,   //选择每页显示多少条数据，下拉选项
                    "paginationType": "full_numbers",      //详细分页组，可以支持直接跳转到某页
                    "lengthMenu": [10],
                    "sAjaxSource": url,
                    "sAjaxDataProp": "list",//查询后，返回的集合
                    "fnServerData": function (sSource, aoData, fnCallback) {  //查询条件
                        aoData.push(
                            {
                                "name": "beginTime",
                                "value": $('#beginDate').val()
                            },
                            {
                                "name": "endTime",
                                "value": $('#endDate').val()
                            }
                        ),
                            $.ajax({
                                "dataType": 'json',
                                "url": sSource,
                                "type": 'post',
                                "data": aoData,
                                "success": function (resp) {
                                    fnCallback(resp.data)
                                }
                            });
                    },
                    'columnDefs': [{
                        'targets': [2],
                        'orderable': true
                    }],
                    "aoColumns": [{
                        "targets": 0,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.testItemCode === '105001') {
                                if (Number(oData.testValue) >= Number(oData.consultHigh)) {
                                    $(nTd).html('<span style="color:red">' + '异常' + '</span>')
                                } else if (Number(oData.testValue) < Number(oData.consultLow)) {
                                    $(nTd).html('<span style="color:red">' + '异常' + '</span>')
                                } else {
                                    $(nTd).text('')
                                }
                            } else if (oData.testItemCode === '105002') {
                                if (Number(oData.testValue) >= Number(oData.consultHigh)) {
                                    $(nTd).html('<span style="color:red">' + '异常' + '</span>')
                                } else if (Number(oData.testValue) < Number(oData.consultLow)) {
                                    $(nTd).html('<span style="color:red">' + '异常' + '</span>')
                                } else {
                                    $(nTd).text('')
                                }
                            } else {
                                $(nTd).text('')
                            }
                        }
                    }, {
                        "targets": 1,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            $(nTd).text(oData.testTime)
                        }
                    }, {
                        "targets": 2,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.testItemCode === '105001') { // 105001 代表空腹血糖；105002 代表餐后 2 小时血糖
                                if (oData.testValue >= Number(oData.consultHigh) && oData.testValue < Number('33')) {
                                    $(nTd).html('<span style="color:red">' + oData.testValue + '</span>')
                                } else if (oData.testValue >= Number('33')) {
                                    $(nTd).html('<span style="color:red">' + '操作不当' + '</span>')
                                } else if (oData.testValue < Number(oData.consultLow)) {
                                    $(nTd).html('<span style="color:red">' + oData.testValue + '</span>')
                                } else {
                                    $(nTd).text(oData.testValue)
                                }
                            } else {
                                $(nTd).text('')
                            }
                        }
                    }, {
                        "targets": 3,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.testItemCode === '105002') { // 105001 代表空腹血糖；105002 代表餐后 2 小时血糖
                                if (oData.testValue >= Number(oData.consultHigh) && oData.testValue < Number('33')) {
                                    $(nTd).html('<span style="color:red">' + oData.testValue + '</span>')
                                } else if (oData.testValue >= Number('33')) {
                                    $(nTd).html('<span style="color:red">' + '操作不当' + '</span>')
                                } else if (oData.testValue < Number(oData.consultLow)) {
                                    $(nTd).html('<span style="color:red">' + oData.testValue + '</span>')
                                } else {
                                    $(nTd).text(oData.testValue)
                                }
                            } else {
                                $(nTd).text('')
                            }
                        }
                    }],
                    "oLanguage": {//插件的汉化
                        "sLengthMenu": "32",
                        "sZeroRecords": "抱歉， 没有找到",
                        "sInfoEmpty": "没有数据",
                        "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
                        "oPaginate": {
                            "sFirst": "",
                            "sPrevious": "<b>上一页<b>",
                            "sLast": "",
                            "sNext": "<i>下一页</i>"

                        },
                        "sZeroRecords": "没有检索到数据",
                        "sProcessing": "<img src='' />",
                        "sSearch": "搜索"
                    }
                });
            },
            getBpMax(data1, data) {
                var max = '';
                // 获取两组数据的最大值
                if (data1.length != 0 && data.length != 0) {
                    if (Math.max.apply(null, data1) > Math.max.apply(null, data)) {
                        max = Math.max.apply(null, data1) + 10
                    } else if (Math.max.apply(null, data1) < Math.max.apply(null, data)) {
                        max = Math.max.apply(null, data) + 10
                    } else {
                        max = Math.max.apply(null, data) + 10
                    }
                    if (max < 200) {
                        max = 200
                    }
                } else if (data1.length != 0 || data.length != 0) {
                    if (data1.length != 0) {
                        max = Math.max.apply(null, data1) + 10
                    } else {
                        max = Math.max.apply(null, data) + 10
                    }
                    if (max < 200) {
                        max = 200
                    }
                } else {
                    max = 200
                }
                return max
            },
            getMax(data1, data) {
                var max = '';
                // 获取两组数据的最大值
                if (data1.length != 0 && data.length != 0) {
                    if (Math.max.apply(null, data1) > Math.max.apply(null, data)) {
                        max = Math.max.apply(null, data1) + 5
                    } else if (Math.max.apply(null, data1) < Math.max.apply(null, data)) {
                        max = Math.max.apply(null, data)
                    } else {
                        max = Math.max.apply(null, data)
                    }
                    if (max < 12) {
                        max = 15
                    }
                } else if (data1.length != 0 || data.length != 0) {
                    if (data1.length != 0) {
                        max = Math.max.apply(null, data1)
                    } else {
                        max = Math.max.apply(null, data)
                    }
                    if (max < 12) {
                        max = 15
                    }
                } else {
                    max = 15
                }
                return max
            },
            // 判断当前数据是否可以转化为数组 用 , 截取
            isArr(data) {
                var str = '';
                var arr = [];
                if (data != null) {
                    if (typeof data == 'string') {
                        arr = data.split(',');
                        return arr
                    } else {
                        str = data;
                        return str
                    }
                } else {
                    return ''
                }
            },
            // 不在data中的数据匹配
            noDataShow(arr, child) {
                // 若为数组 则循环遍历渲染
                if (arr instanceof Array) {
                    for (var a = 0; a < child.length; a++) {
                        for (var i = 0; i < arr.length; i++) {
                            if (child[a].firstChild.getAttribute('value') == arr[i]) {
                                child[a].firstChild.checked = true
                            }
                        }
                    }
                } else {
                    [...child].forEach((item, index) => {
                        if (item.firstChild.getAttribute('value') == arr) {
                            item.firstChild.checked = true
                        }
                    })
                }
            },
            // 匹配获取新的数组
            getNewArr(data) {
                let that = this;
                var arr = [];
                that.illnessData.forEach((item, index) => {
                    if (item.id == data) {
                        arr = item.list
                    }
                })
                return arr
            },
            // 公用返回一个字符串集合
            arrToString(array) {
                var arr = [];
                [...array].forEach((item, index) => {
                    if (item.firstChild.checked) {
                        arr.push(item.firstChild.getAttribute('value'))
                    }
                })
                return arr.toString()
            },
            updateBlood() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLOOTFAT_PATIENTBLOODFATTOSAVE}?idCard=' + that.infor.idcard, 800, 660);
            },
            updateLoose() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_PATIENTBONELOOSETOSAVE}?idCard=' + that.infor.idcard, 800, 660);
            },
            fadeShow() {
                let that = this;
                if (that.isBfAccompany) {
                    that.isBfAccompany = false
                } else {
                    that.isBfAccompany = true
                }
                $('.fadeContainer').slideToggle(1500);
            },
            initLayDate(id) {
                laydate({
                    elem: id,
                    istime: true,
                    format: 'YYYY-MM-DD',
                    choose: function (dates) { //选择好日期的回调
                        //                initLineTable();
                    }
                })
            },
            initTable(idCard) {
                // debugger
                let that = this;
                var url = '';
                if (that.diseasesType == '1') {
                    url = '${URL_ACCOMPANY_BPLIST}?idCard=' + idCard
                } else if (that.diseasesType == '2') {
                    url = '${URL_ACCOMPANY_BSLIST}?idCard=' + idCard
                } else if (that.diseasesType == '3') {
                    url = '${URL_ACCOMPANY_BFLIST}?idCard=' + idCard
                } else if (that.diseasesType == '4') {
                    url = '${URL_ACCOMPANY_BLLIST}?idCard=' + idCard
                }
                table = $('#example4').DataTable({
                    "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
                        "t" +
                        "<'row'<''i><''p>>",
                    "bFilter": false,//去掉搜索框
                    "bAutoWidth": true, //自适应宽度
                    "info": false,
                    "bSort": false,
                    "sPaginationType": "full_numbers",
                    "ordering": false,//是否允许Datatables开启排序
                    "bProcessing": true,
                    "bServerSide": true,
                    "searching": false, //去掉搜索框方法一
                    'lengthChange': false,
                    "oPaginate": false,
                    "sAjaxSource": url,
                    "sAjaxDataProp": "dataList",//查询后，返回的集合
                    "fnServerData": function (sSource, aoData, fnCallback) {
                        $.ajax({
                            "dataType": 'json',
                            "url": sSource,
                            "type": 'post',
                            "success": function (resp) {
                                // console.debug('accompany resp: ' + JSON.stringify(resp.dataList));
                                /*if (resp.dataList.length > 5) {
                                    that.accompany = false
                                    fnCallback(resp.dataList.slice(0, 5))
                                } else {
                                    if (resp.dataList.length == 0) {
                                        that.accompany = true;
                                        $('#example4 tbody').css({
                                            'display': 'none'
                                        })
                                    } else {
                                        that.accompany = false
                                    }
                                    fnCallback(resp)
                                }*/
                                fnCallback(resp)
                            }
                        });
                    },
                    "aoColumns": [{
                        "mDataProp": "doctorName"
                    }, {
                        "targets": 1,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.accompanyTime != null) {
                                $(nTd).html(oData.accompanyTime.slice(0, 10))
                            } else {
                                $(nTd).html('')
                            }
                        }
                    }, {
                        "targets": 2,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.accompanyType == '1') {
                                $(nTd).text('门诊')
                            } else if (oData.accompanyType == '2') {
                                $(nTd).text('家庭')
                            } else if (oData.accompanyType == '3') {
                                $(nTd).text('电话')
                            } else if (oData.accompanyType == '4') {
                                $(nTd).text('集体')
                            } else {
                                $(nTd).text('')
                            }
                        }
                    }, {
                        "targets": 3,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.remark == '0') {
                                $(nTd).text('首次')
                            } else if (oData.remark == '1') {
                                $(nTd).text('6个月')
                            } else if (oData.remark == '2') {
                                $(nTd).text('12个月')
                            } else if (oData.remark == '3') {
                                $(nTd).text('18个月')
                            }  else if (oData.remark == '4') {
                                $(nTd).text('24个月')
                            } else {
                                $(nTd).text('')
                            }
                        }
                    }, {
                        "targets": 4,
                        "data": null,
                        "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                            if (oData.nextAccompanyTime != null) {
                                $(nTd).html(oData.nextAccompanyTime.slice(0, 10))
                            } else {
                                $(nTd).html('')
                            }
                        }
                    }],
                    "oLanguage": {//插件的汉化
                        "sLengthMenu": "32",
                        "sInfoEmpty": "没有数据",
                        "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
                        "oPaginate": {
                            "sFirst": "",
                            "sPrevious": "<b>上一页<b>",
                            "sLast": "",
                            "sNext": "<i>下一页</i>"
                        },
                        "sZeroRecords": " ",
                        "sProcessing": "<img src='' />",
                        "sSearch": "搜索"
                    },
                });
            },
            MoreOsta() {
                let that = this;
                // 显示更多血压信息 跳转
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_PATIENT_TOMOREBPINFO}?idCard=' + that.infor.idcard + '&type=' + that.Type
                        breadLine.push({
                            name: '血压信息',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_PATIENT_TOMOREBPINFO}?idCard=' + that.infor.idcard + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            MoreTarget() {

            },
            // 风险筛查部分
            isNull(data) {
                if (data == null) {
                    data = ''
                }
                return data
            },
            saveRisk() {
                let that = this;
                $('#keep').attr('disabled', 'disabled')
                $.ajax({
                    url: '${URL_SCREENING_SAVEBL}',
                    data: {
                        id: that.id,
                        idCard: that.idCard,
                        screeningTime: that.blData.screeningTime,
                        humpback: that.blData.humpback,
                        menstruation: that.blData.menstruation,
                        estrogen: that.blData.estrogen,
                        androgen: that.blData.androgen,
                        sport: that.blData.sport,
                        check: that.blData.check,
                        osteoporosis: that.blData.osteoporosis,
                        fracture: that.blData.fracture,
                        diagnosis: that.blData.diagnosis,
                        diagnosisMsg: that.blData.diagnosisMsg,
                        advice: that.blData.advice,
                        riskLevel: that.blData.riskLevel,
                        osta: that.blData.osta
                    },
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        if (data.success) {
                            $.ajax({
                                url: "${URL_SCREENING_GETBREADLINE}",
                                dataType: 'json',
                                type: 'post',
                                success: function (data) {
                                    var urlLib = '';
                                    urlLib = JSON.parse(data.data).slice(0, urlLib.length - 1)
                                    $.ajax({
                                        url: '${URL_SCREENING_SAVEBREADLINE}',
                                        data: {
                                            breadLine: JSON.stringify(urlLib)
                                        },
                                        dataType: 'json',
                                        type: 'post',
                                        success: function (data) {
                                            // window.history.go(-1)
                                            var str = '保存成功'
                                            window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                                        }
                                    })
                                }
                            })
                        }
                    }
                })
            },
            ////  诊疗信息部分
            getAjax(type, id, reads, checkData, testTime, name, min, max, name1, string) {
                // console.debug('before URL_BONELOOSE_RESULTLIST string: ' + string);
                let that = this;
                $.ajax({
                    url: '${URL_BONELOOSE_RESULTLIST}',
                    data: {
                        idCard: that.checkData.idCard,
                        type: type
                    },
                    dataType: 'json',
                    type: 'get',
                    success: function (data) {
                        // console.debug('URL_BONELOOSE_RESULTLIST: ' + JSON.stringify(data));
                        reads = [];
                        checkData = [];
                        testTime = [];
                        if (data.dataList.length == 0) {
                            if (string == 'DXA') {
                                that.DXA = false
                            } else if (string == 'score') {
                                that.score = false
                            } else if (string == 'DXA1') {
                                that.DXA1 = false
                            } else if (string == 'score1') {
                                that.score1 = false
                            } else if (string == 'DXA2') {
                                that.DXA2 = false
                            } else if (string == 'score2') {
                                that.score2 = false
                            }
                        } else {
                            if (string == 'DXA') {
                                that.DXA = true
                            } else if (string == 'score') {
                                that.score = true
                            } else if (string == 'DXA1') {
                                that.DXA1 = true
                            } else if (string == 'score1') {
                                that.score1 = true
                            } else if (string == 'DXA2') {
                                that.DXA2 = true
                            } else if (string == 'score2') {
                                that.score2 = true
                            }
                            var xAisx = ['首次', '3月', '6月', '12月', '18月', '24月'];
                            for (var a = 0; a < xAisx.length; a++) {
                                for (var i = 0; i < data.dataList.length; i++) {
                                    if (xAisx[a] == data.dataList[i].testTimes) {
                                        reads[a] = data.dataList[i].testTimes;
                                        checkData[a] = data.dataList[i].checkValue;
                                        testTime[a] = data.dataList[i].createTime
                                    }
                                }
                            }
                            that.ultData(document.getElementById(id), checkData, reads, testTime, name, min, max, name1)
                        }
                    }
                })
            },
            chengSelect() {
                let that = this;
                if (that.checkData.prescribingDrugsPre == 1) {
                    $.ajax({
                        url: '${URL_BLONELOOSE_DRUGLIST}',
                        data: {
                            idCard: that.idCard,
                            checkId: that.id,
                            preCheck: that.checkData.prescribingDrugsPre
                        },
                        dataType: 'json',
                        type: 'get',
                        success: function (data) {
                            if (data.dataList.length != 0) {
                                data.dataList.forEach((item, index) => {
                                    that.medicalList.push({
                                        id: index + 1,
                                        type: item.type,
                                        chemistryName: item.chemistryName,
                                        productName: item.productName,
                                        consumption: item.consumption,
                                        frequency: item.frequency,
                                        mode: item.mode,
                                        useStop: item.useStop
                                    })
                                })
                            }
                        }
                    })
                }
            },
            // 多选框回显
            showMoreCheck(locaData, data) {
                // 字符串为空
                if (data.length == 0 || data == '' || data == null) {
                    data = '';
                } else if (data.indexOf(',') != -1) {
                    // 字符串包含英文,则说明是数组
                    data = data.split(',');
                } else {
                    // 单个字符串 eg: '1'
                    data = data.split('');
                }
                for (var a = 0; a < locaData.length; a++) {
                    for (var i = 0; i < data.length; i++) {
                        if (locaData[a].id == data[i]) {
                            locaData[a].check = true
                        }
                    }
                }
            },
            showMoreCheckOther(locaData, data) {
                // 字符串为空
                if (data.length == 0 || data == '' || data == null) {
                    data = '';
                } else if (data.indexOf(',') != -1) {
                    // 字符串包含英文,则说明是数组
                    data = data.split(',');
                } else {
                    // 单个字符串 eg: '1'
                    data = data.split('');
                }
                for (var a = 0; a < locaData.length; a++) {
                    for (var i = 0; i < data.length; i++) {
                        if (locaData[a].id == data[i]) {
                            locaData[a].checked = true
                        }
                    }
                }
            },
            ultData(id, data, time, testTime, title, min, max, dataName) {
                var myChart = echarts.init(id);
                var options = {
                    'title': {
                        'text': title,
                        'textStyle': {
                            'color': '#b0b0b0',
                            'fontStyle': 'normal',
                            'fontWeight': 'lignter',
                            'fontSize': 25
                        }
                    },
                    'tooltip': {
                        'trigger': 'axis',
                        'formatter': function (params) {
                            var str = '';
                            if (params.length == 0) {
                                str = ''
                            } else {
                                params.forEach((item, index) => {
                                    if (item.data) {
                                        str += item.marker + item.seriesName + ':' + item.data + '<br>'
                                    }
                                })
                            }
                            return str;
                        }
                    },
                    'calculable': true,
                    'grid': {
                        'left': '2%',
                        'right': '7%',
                        'top': '10%',
                        'bottom': '5%',
                        'containLabel': true,
                        'y2': 50,
                        'borderWidth': '0'
                    },
                    'xAxis': {
                        'data': ['首次', '3月', '6月', '12月', '18月', '24月'],
                        'axisLabel': {
                            'intreval': 'auto',
                            'textStyle': {
                                'color': 'black',
                                'fontSize': '14'
                            }
                        },
                        'splitLine': {
                            'show': false
                        },
                        'axisLine': {
                            'lineStyle': {
                                'color': '#b6b6b6'
                            },
                            'onZero': false
                        },
                        'axisTick': {
                            'show': false
                        }
                    },
                    'yAxis':
                        {
                            'type': 'value',
                            'max': max,
                            'min': min,
                            'axisLabel': {
                                'intreval': 0,
                                'textStyle': {
//                                    'color':'black',
                                    'fontSize': '14',
                                    'shadowOffset': -5
                                }
                            },
                            'splitLine': {
                                'show': false
                            },
                            'axisLine': {
                                'lineStyle': {
                                    'color': '#b6b6b6'
                                }
                            },
                            'axisTick': {
                                'show': false
                            }
                        }
                    ,
                    'series': [
                        {
                            'name': dataName,
                            'type': 'line',
                            'data': data,
                            'itemStyle': {
                                'normal': {
                                    'color': '#3a85ff',
                                    'lineStyle': {
                                        'color': '#3a85ff'
                                    }
                                }
                            },
                            'symbol': 'circle',
                            'symbolSize': 16
                        },
                        {
                            'name': '测试时间段',
                            'type': 'line',
                            'data': time,
                            'show': false
                        },
                        {
                            'name': '测试时间',
                            'type': 'line',
                            'data': testTime,
                            'show': false
                        }
                    ]
                }
                myChart.setOption(options, true)
                window.addEventListener('resize', function () {
                    myChart.resize()
                })
            },
            // 骨折情况
            lineChestCheck(item) {
                let that = this;
                that.checkData.lineChest = that.getSelectArray(that.checkData.lineChest, item)
                if (item.name != '不详') {
                    if (item.check) {
                        that.lineChestSelect.push({
                            name: item.name,
                            id: ''
                        })
                    } else {
                        var arrList = [];
                        that.lineChestSelect.forEach((list, index) => {
                            if (list.name != item.name) {
                                arrList.push(list)
                            }
                        })
                        that.lineChestSelect = arrList
                    }
                }
            },
            // 骨折
            lineFractureCheck(item) {
                let that = this;
                that.checkData.lineFracture = that.getSelectArray(that.checkData.lineFracture, item)
            },
            // 本次检查项目
            checkProjectCheck(item) {
                let that = this;
                that.checkData.checkProject = that.getSelectArray(that.checkData.checkProject, item);
            },
            // 下次检查项目
            checkProjectNextCheck(item) {
                let that = this;
                that.checkData.checkProjectNext = that.getSelectArray(that.checkData.checkProjectNext, item);
            },
            // 手术史
            operationCheck(item) {
                let that = this;
                that.checkData.operation = that.getSelectArray(that.checkData.operation, item);
            },
            // 其他药物使用情况
            otherDrugCheck(item) {
                let that = this;
                that.checkData.otherDrug = that.getSelectArray(that.checkData.otherDrug, item);
            },
            sportModeCheck(item) {
                let that = this;
                that.checkData.sportMode = that.getSelectArray(that.checkData.sportMode, item);
            },
            // 饮用类型
            drinkingTypeCheck(item) {
                let that = this;
                that.checkData.drinkingType = that.getSelectArray(that.checkData.drinkingType, item);
            },
            rheumatismType(item, name) {
                let that = this;
                if (name == '风湿系统疾病') {
                    that.checkData.rheumatismType = that.getSelectArrayOther(that.checkData.rheumatismType, item)
                } else if (name == '内分泌及代谢系统疾病') {
                    that.checkData.endocrineType = that.getSelectArrayOther(that.checkData.endocrineType, item)
                } else if (name == '循环系统疾病') {
                    that.checkData.circulatoryType = that.getSelectArrayOther(that.checkData.circulatoryType, item)
                } else if (name == '呼吸系统疾病') {
                    that.checkData.breathingType = that.getSelectArrayOther(that.checkData.breathingType, item)
                } else if (name == '神经及精神系统疾病') {
                    that.checkData.nerveType = that.getSelectArrayOther(that.checkData.nerveType, item)
                } else if (name == '消化系统疾病') {
                    that.checkData.digestionType = that.getSelectArrayOther(that.checkData.digestionType, item)
                } else if (name == '泌尿系统疾病') {
                    that.checkData.urineType = that.getSelectArrayOther(that.checkData.urineType, item)
                } else if (name == '血液系统疾病') {
                    that.checkData.bloodType = that.getSelectArrayOther(that.checkData.bloodType, item)
                } else if (name == '先天性及遗传性疾病') {
                    that.checkData.inheritanceType = that.getSelectArrayOther(that.checkData.inheritanceType, item)
                } else if (name == '其他') {
                    that.checkData.otherType = that.getSelectArrayOther(that.checkData.otherType, item)
                }
            },
            // 公用获取选中的数组方法
            getSelectArray(data, item) {
                console.debug(data);
                if (data == '') {
                    data = []
                } else if (data.constructor != Array) {
                    data = data.split(',')
                }
                if (!item.check) {
                    item.check = true;
                    data.push(item.id)
                } else {
                    item.check = false;
                    var index = data.indexOf(item.id);
                    if (index > -1) {
                        data.splice(index, 1);
                    }
                }
                if (data.indexOf('[]') > -1) {
                    data = data.replace(/[]/g, "");
                }
                return data;
            },
            getSelectArrayOther(data, item) {
                if (data == '') {
                    data = []
                } else if (data.constructor != Array) {
                    data = data.split(',')
                }
                if (!item.checked) {
                    item.checked = true;
                    data.push(item.id)
                } else {
                    item.checked = false;
                    var index = data.indexOf(item.id);
                    if (index > -1) {
                        data.splice(index, 1);
                    }
                }
                if (data.indexOf('[]') > -1) {
                    data = data.replace(/[]/g, "");
                }
                return data.toString()
            },
            addDXAdata() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECKBMD}?idCard=' + that.idCard + '&type=' + 1 + '&id=' + 'dxaBar', 800, 400);
            },
            addScoreData() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECKT}?idCard=' + that.idCard + '&type=' + 4 + '&id=' + 'scoreBar', 800, 400);
            },
            addDXAdata1() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECKBMD}?idCard=' + that.idCard + '&type=' + 2 + '&id=' + 'dxaBar1', 800, 400);
            },
            addScoreData1() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECKT}?idCard=' + that.idCard + '&type=' + 5 + '&id=' + 'scoreBar1', 800, 400);
            },
            addDXAdata2() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECKBMD}?idCard=' + that.idCard + '&type=' + 3 + '&id=' + 'dxaBar2', 800, 400);
            },
            addScoreData2() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECKT}?idCard=' + that.idCard + '&type=' + 6 + '&id=' + 'scoreBar2', 800, 400);
            },
            deletMedical() {
                // 获取id
                let that = this;
                var checkedArray = []
                var input = $('.check_id');
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length == 0) {
                    var str = '请勾选一条以上数据删除'
                    window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                } else {
                    var ids = [];
                    for (var a = 0; a < checkedArray.length; a++) {
                        ids.push(checkedArray[a].value)
                    }
                    var r = confirm("确定要删除勾选的数据吗?");
                    if (r == true) {
                        var arr = []
                        for (var a = 0; a < that.medicalList.length; a++) {
                            for (var i = 0; i < ids.length; i++) {
                                if (that.medicalList[a].id != ids[i]) {
                                    arr.push(that.medicalList[a])
                                }
                            }
                        }
                        that.medicalList = arr;
                        for (var a = 0; a < input.length; a++) {
                            input[a].checked = false
                        }
                    }
                }
            },
            UpdateMedical() {
                let that = this;
                var checkedArray = []
                var input = $('.check_id');
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length != 1) {
                    var str = '请勾选一条数据修改'
                    window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                } else {
                    var td = checkedArray[0].parentNode.parentNode.childNodes;
                    var id = td[0].firstElementChild.value
                    window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECK}?idCard=' + that.idCard + '&checkId=' + that.id + '&id=' + id, 800, 600);
                }
            },
            // 四大生命特征
            toCharacteristics() {
                let that = this;
                window.parent.showNewModelIframe('${URL_PATIENT_TOADDVITALCHARACTERISTICS}?idCard=' + that.idCard + '&checkId=' + that.id + '&id=' + '', 600, 600);
            },
            toAddMedical() {
                let that = this;
                window.parent.showNewModelIframe('${URL_BLONELOOSE_CHECK}?idCard=' + that.idCard + '&checkId=' + that.id + '&id=' + '', 800, 600);
            },
            dataSave() {
                let that = this;
                that.saveDisabled = true;
                that.checkData.formationTime = $('#formationTime').val();
                that.checkData.metabolizeTime = $('#metabolizeTime').val();
                that.checkData.absorbTime = $('#absorbTime').val();
                that.checkData.lineTime = $('#lineTime').val();
                that.checkData.bloodTime = $('#bloodTime').val();
                that.checkData.biochemistryTime = $('#biochemistryTime').val();
                that.checkData.thyroidTime = $('#thyroidTime').val();
                that.checkData.drugs = that.medicalList;
                that.checkData.lineChest = that.lineChestSelect;
                that.checkData.checkProjectNext = that.checkData.checkProjectNext.toString();
                that.checkData.checkProject = that.checkData.checkProject.toString();
                that.checkData.operation = that.checkData.operation.toString();
                that.checkData.otherDrug = that.checkData.otherDrug.toString();
                that.checkData.sportMode = that.checkData.sportMode.toString();
                that.checkData.drinkingType = that.checkData.drinkingType.toString();
                that.checkData.lineFracture = that.checkData.lineFracture.toString();

                // 骨松等级
                /*var classtype = $("#blType input");
                var classtypeComp = [];
                for( var a = 0 ; a < classtype.length; a++ ){
                    if( classtype[a].checked ){
                        classtypeComp.push(a+1);
                    }
                }
                var blType = String(classtypeComp);
                console.debug('blType:' + blType);
                that.checkData.blType = blType;*/

                $.ajax({
                    url: '${URL_BLONELOOSE_SAVECHECK}',
                    contentType: 'application/json;charset=utf-8',
                    data: JSON.stringify(that.checkData),
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        if (data.success) {
                            $.ajax({
                                url: "${URL_SCREENING_GETBREADLINE}",
                                dataType: 'json',
                                type: 'post',
                                success: function (data) {
                                    var urlLib = '';
                                    urlLib = JSON.parse(data.data).slice(0, urlLib.length - 1)
                                    $.ajax({
                                        url: '${URL_SCREENING_SAVEBREADLINE}',
                                        data: {
                                            breadLine: JSON.stringify(urlLib)
                                        },
                                        dataType: 'json',
                                        type: 'post',
                                        success: function (data) {
                                            parent.showSrc(urlLib[urlLib.length - 1].href);
                                            // 刷新当前页面
                                            window.parent.simpleCloseModal();
                                        }
                                    })
                                }
                            })
                        }
                    }
                })
            },
            // 获取骨松数据
            getUltData(idcard) {
                let that = this;
                $.ajax({
                    url: '${URL_BLONELOOSE_LIST}',
                    data: {
                        idCard: idcard
                    },
                    dataType: 'json',
                    type: "get",
                    success: function (data) {
                        if (data.dataList.length != 0) {
                            that.testData = data.dataList;
                            that.lastTextData = that.testData[0];
                            that.chartOSTA = true;
                            that.chartGzh = true;
                            // 骨密度数据
                            var gmdList = [];
                            // 定量超声数据
                            var dlcsList = [];
                            // 骨转化指标P1NP
                            var p1NPList = []
                            // 骨转化指标B-CTX(B胶联降解产物)
                            var CTXList = [];
                            // 结果描述
                            var reads = []
                            // 测试时间
                            var testDate = [];
                            // 插入OSTA分值数据表
                            $('.osta').append('<div id="ostaBar">' + '</div>');
                            $("#ostaBar").css({
                                'width': "97%",
                                "height": "320px"
                            })
                            // 插入骨转换数据表
                            $('.gzh').append('<div id="gzhBar">' + '</div>');
                            $("#gzhBar").css({
                                'width': "97%",
                                "height": "320px"
                            })
                            var xAisx = ['首次', '3月', '6月', '12月', '18月', '24月'];
                            for (var a = 0; a < xAisx.length; a++) {
                                for (var i = 0; i < that.testData.length; i++) {
                                    if (xAisx[a] == that.testData[i].testTimes) {
                                        gmdList[a] = that.testData[i].dXA;
                                        dlcsList[a] = that.testData[i].ultrasonic
                                        p1NPList[a] = that.testData[i].p1NP
                                        CTXList[a] = that.testData[i].βCTX
                                        reads[a] = that.testData[i].message
                                        testDate[a] = that.testData[i].testDate
                                    }
                                }
                            }
//                            that.testData.forEach((item,index)=>{
//                                gmdList.push(item.dXA)
//                                dlcsList.push(item.ultrasonic)
//                                p1NPList.push(item.p1NP)
//                                CTXList.push(item.βCTX)
//                                reads.push(item.message)
//                                testDate.push(item.testDate)
//                            })
                            that.ultBLData(document.getElementById('ostaBar'), 'T值', '骨密度', '定量超声', gmdList, dlcsList, reads, testDate, '0', '-3');
                            that.ultBLData(document.getElementById('gzhBar'), 'ng/nl', '骨转换指标P1NP', '骨转换指标βCTX', p1NPList, CTXList, reads, testDate, '40', '0');
                        }
                    }
                })
            },
            // 数据表
            ultBLData(id, unit, dataName, dataName1, data, data1, reads, testDate, max, min) {
                var myChart = echarts.init(id);
                var options = {
                    'title': {
                        'text': unit,
                        'textStyle': {
                            'color': '#b0b0b0',
                            'fontStyle': 'normal',
                            'fontWeight': 'lignter',
                            'fontSize': 25
                        }
                    },
                    'tooltip': {
                        'trigger': 'axis',
                        'formatter': function (params) {
                            var str = '';
                            if (params.length == 0) {
                                str = ''
                            } else {
                                params.forEach((item, index) => {
                                    if (item.data) {
                                        str += item.marker + item.seriesName + ':' + item.data + '<br>'
                                    }
                                })
                            }
                            return str;
                        }
                    },
                    'calculable': true,
                    'grid': {
                        'left': '2%',
                        'right': '7%',
                        'top': '10%',
                        'bottom': '5%',
                        'containLabel': true,
                        'y2': 50,
                        'borderWidth': '0'
                    },
                    'xAxis': {
                        'data': ['首次', '3月', '6月', '12月', '18月', '24月'],
                        'axisLabel': {
                            'intreval': 'auto',
                            'textStyle': {
                                'color': 'black',
                                'fontSize': '14'
                            }
                        },
                        'splitLine': {
                            'show': false
                        },
                        'axisLine': {
                            'lineStyle': {
                                'color': '#b6b6b6'
                            },
                            'onZero': false
                        },
                        'axisTick': {
                            'show': false
                        }
                    },
                    'yAxis':
                        {
                            'type': 'value',
                            'max': max,
                            'min': min,
                            'axisLabel': {
                                'intreval': 0,
                                'textStyle': {
//                                    'color':'black',
                                    'fontSize': '14',
                                    'shadowOffset': -5
                                }
                            },
                            'splitLine': {
                                'show': false
                            },
                            'axisLine': {
                                'lineStyle': {
                                    'color': '#b6b6b6'
                                }
                            },
                            'axisTick': {
                                'show': false
                            }
                        }
                    ,
                    'series': [
                        {
                            'name': dataName,
                            'type': 'line',
                            'data': data,
                            'itemStyle': {
                                'normal': {
                                    'color': '#00d2cb',
                                    'lineStyle': {
                                        'color': '#00d2cb'
                                    }
                                }
                            },
//                            'symbolSize': function (value){
//                                return Math.round(value[2]/10) + 2;
//                            },
                            'symbol': 'circle',
                            'symbolSize': 16
                        },
                        {
                            'name': dataName1,
                            'type': 'line',
                            'data': data1,
                            'symbol': 'circle',
                            'symbolSize': 18,
                            'itemStyle': {
                                'normal': {
                                    'color': '#3a85ff',
                                    'lineStyle': {
                                        'color': '#3a85ff'
                                    }
                                }
                            },
                            'symbol': 'circle',
                            'symbolSize': 16
                        },
                        {
                            'name': '结果描述',
                            'type': 'line',
                            'data': reads,
                            'show': false
                        },
                        {
                            'name': '测试时间',
                            'type': 'line',
                            'data': testDate,
                            'show': false
                        }
                    ]
                }
                myChart.setOption(options)
                window.addEventListener('resize', function () {
                    myChart.resize()
                })
            },
            toAddRarefation() {
                let that = this;
                // 新增用药信息页面 跳转
                // 获取病人id
                window.parent.showNewModelIframe('${URL_BLONELOOSE_TOSAVE}?id=' + that.infor.id + '&idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType, 830, 670);
            },
            deletCheck() {
                let that = this;
                var checkedArray = []
                var input = $('.test_id')
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length != 1) {
                    var str = '请勾选一条数据修改'
                    window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                } else {
                    var td = checkedArray[0].parentNode.parentNode.childNodes;
                    var id = td[2].firstChild.innerText
                    $.ajax({
                        url: '${URL_TESTPROJECT_DELETECHECK}',
                        data: {
                            id: id
                        },
                        dataType: 'json',
                        type: "post",
                        success: function (data) {
                            refreshTable();
                        }
                    })
                }
            },
            deletTest() {
                let that = this;
                var checkedArray = []
                var input = $('.check_id')
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length != 1) {
                    var str = '请勾选一条数据修改'
                    window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                } else {
                    var td = checkedArray[0].parentNode.parentNode.childNodes;
                    var id = td[2].firstChild.innerText
                    $.ajax({
                        url: '${URL_TESTPROJECT_DELETECHECK}',
                        data: {
                            id: id
                        },
                        dataType: 'json',
                        type: "post",
                        success: function (data) {
                            refreshTable()
                        }
                    })
                }
            },
            addDevice: function () {
                let that = this;
                var add = location.search.split('?')[1].split('&')
                var type = location.search.split('?')[1].split('&')[add.length - 1].split('=')[1]
                window.parent.showNewModelIframe("${URL_PATIENT_PATIENT}?id=" + that.infor.id + '&diseasesType=' + type + '&type=' + that.Type, 800, 650);
            },
            sugar: function () {
                let that = this;
                window.parent.showNewModelIframe("${URL_PATIENT_TOUPDATEBGINFO}?id=" + that.infor.id + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 800, 400);
            },
            pressure: function () {
                let that = this;
                window.parent.showNewModelIframe("${URL_PATIENT_TOUPDATEBPINFO}?id=" + that.infor.id + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 800, 550);
            },
            paint: function () {
                let that = this;
                window.parent.showNewModelIframe("${URL_INDEX_TOUPDATEPAIN}?id=" + that.infor.id + "&painLevel=" + that.infor.painLevel + '&idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 750, 580);
            },
            Morebp: function () {
                let that = this;
                // 显示更多血压信息 跳转
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_PATIENT_TOMOREBPINFO}?idCard=' + that.infor.idcard + '&type=' + that.Type
                        breadLine.push({
                            name: '血压信息',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_PATIENT_TOMOREBPINFO}?idCard=' + that.infor.idcard + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            Morebs: function () {
                let that = this;
                // 显示更多血压信息 跳转
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_PATIENT_TOMOREBGINFO}?idCard=' + that.infor.idcard + "&bsType=" + that.infor.bsType + '&type=' + that.Type
                        breadLine.push({
                            name: '血糖信息',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_PATIENT_TOMOREBGINFO}?idCard=' + that.infor.idcard + "&bsType=" + that.infor.bsType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            toAddMedical: function () {
                let that = this;
                // 新增用药信息页面 跳转
                // 获取病人id
                window.parent.showNewModelIframe('${URL_PATIENT_TOADDMEDICAL}?id=' + that.infor.id + '&idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType, 680, 600);
            },
            ///// 随访记录模块
            chengSelect() {
                let that = this;
                if (that.blCheckData.prescribingDrugsPre == 1) {
                    $.ajax({
                        url: '${URL_BLONELOOSE_DRUGLIST}',
                        data: {
                            idCard: that.idCard,
                            checkId: that.blId,
                            preCheck: that.blCheckData.prescribingDrugsPre
                        },
                        dataType: 'json',
                        type: 'get',
                        success: function (data) {
                            if (data.dataList.length != 0) {
                                data.dataList.forEach((item, index) => {
                                    that.blMedicalList.push({
                                        id: index + 1,
                                        type: item.type,
                                        chemistryName: item.chemistryName,
                                        productName: item.productName,
                                        consumption: item.consumption,
                                        frequency: item.frequency,
                                        mode: item.mode,
                                        useStop: item.useStop
                                    })
                                })
                            }
                        }
                    })
                }
            },
            // 多选框回显
            blShowMoreCheck(locaData, data) {
                // 字符串为空
                if (data.length == 0 || data == '' || data == null) {
                    data = '';
                } else if (data.indexOf(',') != -1) {
                    // 字符串包含英文,则说明是数组
                    data = data.split(',');
                } else {
                    // 单个字符串 eg: '1'
                    data = data.split('');
                }
                for (var a = 0; a < locaData.length; a++) {
                    for (var i = 0; i < data.length; i++) {
                        if (locaData[a].id == data[i]) {
                            locaData[a].check = true
                        }
                    }
                }
            },
            blShowMoreCheckOther(locaData, data) {
                // 字符串为空
                if (data.length == 0 || data == '' || data == null) {
                    data = '';
                } else if (data.indexOf(',') != -1) {
                    // 字符串包含英文,则说明是数组
                    data = data.split(',');
                } else {
                    // 单个字符串 eg: '1'
                    data = data.split('');
                }
                for (var a = 0; a < locaData.length; a++) {
                    for (var i = 0; i < data.length; i++) {
                        if (locaData[a].id == data[i]) {
                            locaData[a].checked = true
                        }
                    }
                }
            },
            // 骨折情况
            blLineChestCheck(item) {
                let that = this;
                that.blCheckData.lineChest = that.getSelectArray(that.checkData.lineChest, item)
                if (item.name != '不详') {
                    if (item.check) {
                        that.blLineChestSelect.push({
                            name: item.name,
                            id: item.id
                        })
                    } else {
                        var arrList = [];
                        that.blLineChestSelect.forEach((list, index) => {
                            if (list.name != item.name) {
                                arrList.push(list)
                            }
                        })
                        that.blLineChestSelect = arrList
                    }
                }
            },
            // 骨折
            blLineFractureCheck(item) {
                let that = this;
                that.blCheckData.lineFracture = that.getSelectArray(that.blCheckData.lineFracture, item)
            },
            // 本次检查项目
            blCheckProjectCheck(item) {
                let that = this;
                that.blCheckData.checkProject = that.getSelectArray(that.blCheckData.checkProject, item);
            },
            // 下次检查项目
            blCheckProjectNextCheck(item) {
                let that = this;
                that.blCheckData.checkProjectNext = that.getSelectArray(that.blCheckData.checkProjectNext, item);
            },

            ///////////////////////////////////////////////////////////
            // 检测报告 更多
            toMoreRecard: function () {
                let that = this;
                // 新增用药信息页面 跳转
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_PATIENT_TOMORERECORD}?idCard=' + that.infor.idcard
                        breadLine.push({
                            name: '检测报告',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_PATIENT_TOMORERECORD}?idCard=' + that.infor.idcard)
                            }
                        })
                    }
                })
            },
            // 血压信息新增页面
            toAddBpInfo: function () {
                let that = this;
                // 舒张压 收缩压数据弹窗
                window.parent.showNewModelIframe('${URL_PATIENT_TOADDBPINFO}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 800, 450);
            },
            // 血糖信息新增页面
            toAddBgInfo: function () {
                let that = this;
                // 餐后两小时 空腹血压数据
                window.parent.showNewModelIframe('${URL_PATIENT_TOADDBGINFO}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 800, 400);
            },
            checks: function (i) {
                // 判断血压并发症
                var Input = $("#bgillness input");
                $(Input[i - 1]).attr("checked", "checked")
            },
            painLevel: function (i) {
                var Input = $(".pain input");
                $(Input[i]).attr("checked", "checked")
            },
            checkbs: function (i) {
                // 判断血压并发症
                var Input = $("#bpillness input");
                $(Input[i - 1]).attr("checked", "checked")
            },
            // 用药信息弹窗
            addMedical: function () {
                // 获取用药信息
                let that = this;
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_INDEX_TOMOREMEDICAL}?id=' + that.infor.id + "&idCard=" + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type
                        breadLine.push({
                            name: '用药信息',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_INDEX_TOMOREMEDICAL}?id=' + that.infor.id + "&idCard=" + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            // 四大生命特征弹窗
            addCharacteristics: function () {
                let that = this;
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_INDEX_TOVITALCHARACTERISTICS}?id=' + that.infor.id + "&idCard=" + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type
                        breadLine.push({
                            name: '生命特征',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_INDEX_TOVITALCHARACTERISTICS}?id=' + that.infor.id + "&idCard=" + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            UpdateMedical: function () {
                // 判断是否选中
                let that = this;
                var checkedArray = []
                var input = $('.all_id')
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length != 1) {
                    var str = '请勾选一条数据修改'
                    window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                } else {
                    let type = checkedArray[0].parentNode.childNodes[1].innerText
                    if (type != 1) {
                        window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + '该记录由医院同步,不能进行操作', 300, 200)
                        return
                    }
                    var td = checkedArray[0].parentNode.parentNode.childNodes
                    var medicalFrequency = encodeURI(td[4].innerText)
                    var numbers = td[7].innerText
                    var recordTime = td[6].innerText
                    var id = td[2].value
                    var medicalId = td[2].title
                    var medicalname = encodeURI(td[2].innerText)
                    window.parent.showNewModelIframe('${URL_PATIENT_TOUPDATEMEDICAL}?id=' + id
                        + '&medicalId=' + medicalId + '&idCard=' + that.infor.idcard + '&medicalFrequency=' + medicalFrequency +
                        '&numbers=' + numbers + '&medicalname=' + medicalname + '&diseasesType=' + that.diseasesType + '&recordTime=' + recordTime + '&type=' + that.Type, 680, 450);
                }
            },
            toAddTest: function () {
                let that = this;
                // 弹窗 添加
                window.parent.showNewModelIframe('${URL_TESTPROJECT_TOADDCHECK}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 680, 450);
            },
            toUpdateTest: function () {
                let that = this;
                var checkedArray = []
                var input = $('.check_id')
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length != 1) {
                    var str = '请勾选一条数据修改'
                    window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                } else {
                    let type = checkedArray[0].parentNode.childNodes[1].innerText
                    if (type != 1) {
                        window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + '该记录由医院同步,不能进行操作', 300, 200)
                        return
                    }
                    // 弹窗 修改
                    var td = checkedArray[0].parentNode.parentNode.childNodes;
                    var checkProject = encodeURI(td[2].innerText)
                    var checkResult = encodeURI(td[3].innerText)
                    var checkTime = td[4].innerText
                    var id = td[1].innerText
                    window.parent.showNewModelIframe('${URL_TESTPROJECT_TOUPDATECHECK}?idCard=' + that.infor.idcard + '&checkProject=' + checkProject
                        + '&checkResult=' + checkResult + '&checkTime=' + checkTime + '&id=' + id + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 680, 420);
                }
            },
            toMoreCheck: function () {
                let that = this;
                // 更多检验项目
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_TESTPROJECT_TOMORECHECK}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type
                        breadLine.push({
                            name: '检查项目',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_TESTPROJECT_TOMORECHECK}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            toAddCheck: function () {
                let that = this;
                // 弹窗 添加
                window.parent.showNewModelIframe('${URL_TESTPROJECT_TOADDTEST}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 800, 450);
            },
            toMoreSpecRemark: function () {
                let that = this;
                // 更多特殊处理
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_SPECPROJECT_TOMORESPECREMARK}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type
                        breadLine.push({
                            name: '特殊处理',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_SPECPROJECT_TOMORESPECREMARK}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            toAddSpecRemark: function () {
                let that = this;
                // 弹窗 添加
                window.parent.showNewModelIframe('${URL_SPECPROJECT_TOADDPATIENTSPECREMARK}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 800, 450);
            },
            // 删除用药信息
            deletMedical() {
                let that = this;
                var checkedArray = []
                var input = $('.all_id')
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length != 1) {
                    var str = '请勾选一条数据修改'
                    window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
                } else {
                    let type = checkedArray[0].parentNode.childNodes[1].innerText
                    var td = checkedArray[0].parentNode.parentNode.childNodes
                    var id = td[2].firstChild.innerText;
                    if (type != 1) {
                        window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + '该记录由医院同步,不能进行操作', 300, 200)
                        return
                    }
                    $.ajax({
                        url: "${URL_PATIENT_DELETEMEDICALINFO}",
                        dataType: 'json',
                        type: 'post',
                        data: {
                            ids: id
                        },
                        success: function (data) {
                            refreshTable();
                        }
                    })
                }
            },
            toUpdateCheck: function () {
                // 检验项目
                let that = this;
                var checkedArray = []
                var input = $('.test_id')
                for (var a = 0; a < input.length; a++) {
                    if (input[a].checked) {
                        checkedArray.push(input[a])
                    }
                }
                if (checkedArray.length != 1) {
                    alert('请勾选至少一项数据')
                    return
                } else {
                    // 弹窗 修改
                    let type = checkedArray[0].parentNode.childNodes[1].innerText
                    if (type != 1) {
                        window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + '该记录由医院同步,不能进行操作', 300, 200)
                        return
                    }
                    var td = checkedArray[0].parentNode.parentNode.childNodes;
                    var lagerProjectName = encodeURI(td[2].innerText)
                    var smallProjectName = encodeURI(td[3].innerText)
                    var testResult = encodeURI(td[4].innerText)
                    var referenceValue = encodeURI(td[5].innerText)
                    var unit = encodeURI(td[6].innerText)
                    var testTime = td[7].innerText
                    var id = td[1].innerText
                    window.parent.showNewModelIframe('${URL_TESTPROJECT_TOUPDATETEST}?idCard=' + that.infor.idcard + '&lagerProjectName=' + lagerProjectName + '&smallProjectName=' + smallProjectName
                        + '&testResult=' + testResult + '&referenceValue=' + referenceValue + '&testTime=' + testTime + '&unit=' + unit + '&id=' + id + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 800, 450);
                }
            },
            toMoreTest: function () {
                let that = this;
                // 更多检验项目
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_TESTPROJECT_TOMORETEST}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type
                        breadLine.push({
                            name: '检验项目',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_TESTPROJECT_TOMORETEST}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            add: function (n, date) {
                var str = ''
                var d = new Date(date);
                if (d == "Invalid Date") {
                    return;
                }
                //当前日期的毫秒数 + 天数 * 一天的毫秒数
                var n = d.getTime() + 1 * 24 * 60 * 60 * 1000;
                var result = new Date(n);
                str = result.getFullYear() + "-" + (result.getMonth() + 1) + "-" + result.getDate();
                return str
            },
//          血脂更多
            Morebf: function () {
                let that = this;
                // 更多检验项目
                $.ajax({
                    url: "${URL_SCREENING_GETBREADLINE}",
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        breadLine = JSON.parse(data.data)
                        var url = '${URL_BF_TOMOREBFINFO}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type
                        breadLine.push({
                            name: '高血脂',
                            href: url
                        })
                        $.ajax({
                            url: '${URL_SCREENING_SAVEBREADLINE}',
                            data: {
                                breadLine: JSON.stringify(breadLine)
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (data) {
                                parent.showSrc('${URL_BF_TOMOREBFINFO}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type)
                            }
                        })
                    }
                })
            },
            Synchronous(e) {
                let that = this
                $.ajax({
                    url: '${URL_PATIENT_UPDATEPATIENT}',
                    data: {
                        id: that.infor.id,
                        synchronization: '1'
                    },
                    type: 'post',
                    dataType: 'json',
                    success: function (data) {
                        if (data.success) {
                            e.target.disabled = true;
                            e.target.innerText = '正在同步',
                                that.setTime()
                        } else {
                            window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + data.msg, 300, 200)
                        }
                    }
                })
            },
//          新增
            toAddBfInfo: function () {
                let that = this;
                // 弹窗 添加
                window.parent.showNewModelIframe('${URL_BF_TOADDBFINFO}?idCard=' + that.infor.idcard + '&diseasesType=' + that.diseasesType + '&type=' + that.Type, 680, 450)
            },
            // 每隔10秒执行一次
            setTime() {
                let that = this
                var href = decodeURI(decodeURI(location.search.split('?')[1]));
                var arr = href.split('&')[0]
                var url = arr.split('=')[1]
                var arr = []
                arr[0] = that.urlBase
                var timer = setInterval(function () {
                    $.ajax({
                        url: "${URL_PATIENT_PATIENTINFO}",
                        type: 'post',
                        dataType: "json",
                        data: {
                            idCard: url
                        },
                        success: function (data) {
                            if (data.data.synchronization == 2) {
                                clearInterval(timer)
                                that.btnText = '同步完成'
                                <%--window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title='+'同步完成'+'&url='+ arr,300,200)--%>
                                alert('同步完成')
                                location.reload()
                            }
                        }
                    })
                }, 10000)
            }
        },
        mounted() {
            let that = this;
//            that.initLayDate('#beginDate');
            var href = decodeURI(decodeURI(location.search.split('?')[1]));
            that.bsEndDate = that.getNowFormatDate();
            that.bsBeginDate = that.getBeforeWeek(that.bsEndDate);

            // 判断是否有骨松参数
            that.urlBase = window.location.href;
            var arr = href.split('&')[0];
            var url = arr.split('=')[1]; //// 身份证号
            var idCard = url; // 身份证号，还是换个变量名吧，见名知意
            that.idCard = idCard; // 还是先赋值吧。（变量名太乱了；看到这万行代码，赶紧跑路吧。。）
            var arr1 = href.split('&')[1];
            //风险筛查相关
            let search = location.search.split('?')[1];
            let [idName, idValue] = search.split('&')[1].split('=');
            console.debug('idValue: ' + idValue);

            if (idValue != '' && idValue.indexOf('4') > 0) {
                // debugger
                that.riskId = idValue;
                // 初始化获取用户数据
                $.ajax({
                    url: '${URL_SCREENING_BLDATA}',
                    data: {
                        id: that.riskId
                    },
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        that.blData = data.data;
                        that.idCard = that.isNull(data.data.idCard);
                        that.blData.humpback = that.isNull(that.blData.humpback);
                        that.blData.menstruation = that.isNull(that.blData.menstruation);
                        that.blData.estrogen = that.isNull(that.blData.estrogen);
                        that.blData.androgen = that.isNull(that.blData.androgen);
                        that.blData.sport = that.isNull(that.blData.sport);
                        that.blData.check = that.isNull(that.blData.check);
                        that.blData.diagnosis = that.isNull(that.blData.diagnosis);
                        that.blData.diagnosisMsg = that.isNull(that.blData.diagnosisMsg);
                    }
                })
            } else {
                // 获取osta
                $.ajax({
                    url: '${URL_BLONELOOSE_GETOSTA}',
                    data: {
                        idCard: url
                    },
                    type: 'get',
                    dataType: 'json',
                    success: function (data) {
                        if (data.success) {
                            that.blData.osta = that.isNull(data.data.osta);
                            that.blData.riskLevel = that.isNull(data.data.riskLevel);
                        }
                    }
                })
            }
            //////// 诊疗信息相关
            that.checkData.idCard = url;
            that.getAjax(1, 'dxaBar', that.checkData, that.reads, that.testTime0, '腰椎DXA', 0, 1, '腰椎DXA数值', 'DXA')
            that.getAjax(4, 'scoreBar', that.checkData1, that.reads1, that.testTime1, '腰椎score', -4, 1, '腰椎score数值', 'score')
            that.getAjax(2, 'dxaBar1', that.checkData2, that.reads2, that.testTime2, '髋部DTA', 0, 1, '髋部DXA数值', 'DXA1')
            that.getAjax(5, 'scoreBar1', that.checkData3, that.reads3, that.testTime3, '髋部score', -4, 1, '髋部score数值', 'score1')
            that.getAjax(3, 'dxaBar2', that.checkData4, that.reads4, that.testTime4, '前臂DTA', 0, 1, '前臂DXA数值', 'DXA2')
            that.getAjax(6, 'scoreBar2', that.checkData5, that.reads5, that.testTime5, '前臂score', -4, 1, '前臂score数值', 'score2')
            if (idValue != '') {
                that.DId = idValue;
                that.showCurd = true;
                $.ajax({
                    url: '${URL_BLONELOOSE_DRUGLIST}',
                    data: {
                        idCard: that.idCard,
                        checkId: that.id,
                        preCheck: that.checkData.prescribingDrugsPre
                    },
                    dataType: 'json',
                    type: 'get',
                    success: function (data) {
                        if (data.dataList.length != 0) {
                            data.dataList.forEach((item, index) => {
                                that.medicalList.push({
                                    id: index + 1,
                                    type: item.type,
                                    chemistryName: item.chemistryName,
                                    productName: item.productName,
                                    consumption: item.consumption,
                                    frequency: item.frequency,
                                    mode: item.mode,
                                    useStop: item.useStop
                                })
                            })
                        }
                    }
                });
                // 初始化获取诊疗数据（获取骨松患者的最近一次诊疗数据）
                $.ajax({
                    <%--url: '${URL_BLONELOOSE_CHECKINFO}',--%>
                    url: '${URL_BLONELOOSE_CHECKINFO_LATEST}',
                    data: {
                        // id: that.id
                        idCard: idCard
                    },
                    dataType: 'json',
                    type: 'get',
                    success: function (data) {
                        if (data.code == 0 && data.data) {
                            that.id = data.data.id;
                            for (let key in data.data) {
                                for (let a in that.checkData) {
                                    if (a == key) {
                                        that.checkData[a] = data.data[key]
                                    }
                                }
                            }
                            for (let key in that.checkData) {
                                if (that.checkData[key] == null) {
                                    that.checkData[key] = ''
                                }
                            }
                            // console.log()
                            // 胸椎骨折情况
                            if (that.checkData.lineChest && that.checkData.lineChest.length > 0) {
                                var lineChatList = JSON.parse(that.checkData.lineChest);
                                that.lineChestSelect = lineChatList;
                                for (var a = 0; a < lineChatList.length; a++) {
                                    for (var i = 0; i < that.lineChest.length; i++) {
                                        if (lineChatList[a].name == that.lineChest[i].name) {
                                            that.lineChest[i].check = true
                                        }
                                    }
                                }
                            }
                            that.checkData.linePhoto = that.isNull(that.checkData.linePhoto);
                            that.checkData.smoke = that.isNull(that.checkData.smoke);
                            that.checkData.drink = that.isNull(that.checkData.drink);
                            that.checkData.diet = that.isNull(that.checkData.diet);
                            that.checkData.sleepTime = that.isNull(that.checkData.sleepTime);
                            that.checkData.sunTime = that.isNull(that.checkData.sunTime);
                            that.checkData.drug = that.isNull(that.checkData.drug);
                            that.checkData.hormone = that.isNull(that.checkData.hormone);
                            that.checkData.sexHomone = that.isNull(that.checkData.sexHomone);
                            that.checkData.fracture = that.isNull(that.checkData.fracture);
                            that.checkData.standHelp = that.isNull(that.checkData.standHelp);
                            that.checkData.checkType = that.isNull(that.checkData.checkType);
                            that.checkData.usdDrug = that.isNull(that.checkData.usdDrug);
                            that.checkData.boneType = that.isNull(that.checkData.boneType);
                            that.checkData.muscleType = that.isNull(that.checkData.muscleType);
                            that.checkData.walkType = that.isNull(that.checkData.walkType);
                            that.checkData.newFracture = that.isNull(that.checkData.newFracture);
                            that.checkData.powerType = that.isNull(that.checkData.powerType);
                            that.checkData.waistType = that.isNull(that.checkData.waistType);
                            that.checkData.standHelp = that.isNull(that.checkData.standHelp);
                            that.checkData.absorb = that.isNull(that.checkData.absorb);
                            that.checkData.formationTime = that.isNull(that.checkData.formationTime);
                            that.checkData.metabolize = that.isNull(that.checkData.metabolize);
                            that.checkData.blood = that.isNull(that.checkData.blood)
                            that.checkData.urine = that.isNull(that.checkData.urine)
                            that.checkData.biochemistry = that.isNull(that.checkData.biochemistry)
                            that.checkData.thyroid = that.isNull(that.checkData.thyroid)
                            that.checkData.sportMode = that.isNull(that.checkData.sportMode)
                            // 引用类型数据回显
                            that.showMoreCheck(that.drinkingType, that.checkData.drinkingType)
                            // 常用锻炼方式数据回显
                            that.showMoreCheck(that.sportMode, that.checkData.sportMode)
                            // 其他药物使用情况
                            that.showMoreCheck(that.otherDrug, that.checkData.otherDrug)
                            // 手术史
                            that.showMoreCheck(that.operation, that.checkData.operation)
                            // 本次项目检查
                            that.showMoreCheck(that.checkProject, that.checkData.checkProject)
                            // 下次项目检查
                            that.showMoreCheck(that.checkProjectNext, that.checkData.checkProjectNext);
                            // 骨折
                            that.showMoreCheck(that.lineFracture, that.checkData.lineFracture);
                            // 胸椎骨折情况
                            // that.showMoreCheck(that.lineChest, that.checkData.lineChest);
                            // 风湿系统疾病
                            that.showMoreCheckOther(that.illnessData[1].list, that.checkData.rheumatismType);
                            // 内分泌及代谢系统疾病
                            that.showMoreCheckOther(that.illnessData[2].list, that.checkData.endocrineType);
                            // 循环系统疾病
                            that.showMoreCheckOther(that.illnessData[3].list, that.checkData.circulatoryType);
                            // 呼吸系统疾病
                            that.showMoreCheckOther(that.illnessData[4].list, that.checkData.breathingType);
                            // 神经及精神系统疾病
                            that.showMoreCheckOther(that.illnessData[5].list, that.checkData.nerveType);
                            // 消化系统疾病
                            that.showMoreCheckOther(that.illnessData[6].list, that.checkData.digestionType);
                            // 泌尿系统疾病
                            that.showMoreCheckOther(that.illnessData[7].list, that.checkData.urineType);
                            // 血液系统疾病
                            that.showMoreCheckOther(that.illnessData[8].list, that.checkData.bloodType);
                            // 先天性及遗传性疾病
                            that.showMoreCheckOther(that.illnessData[9].list, that.checkData.inheritanceType);
                            // 其他
                            that.showMoreCheckOther(that.illnessData[10].list, that.checkData.otherType);
                            if (that.checkData.weight != '' && that.checkData.height != '') {
                                if (that.checkData.weight == 0 || that.checkData.height == 0) {
                                    that.BMI = 0
                                } else {
                                    var Num = parseInt(that.checkData.height) * 0.01
                                    that.BMI = parseInt(that.checkData.weight) / (Num * Num);
                                    that.BMI = that.BMI.toFixed(2);
                                }
                            } else {
                                that.BMI = ''
                            }
                        }
                    }
                })
            } else {
                // 初始化默认随诊日期为今天
                that.checkData.checkTime = that.getNowFormatDate();
                that.checkData.lineTime = that.getNowFormatDate();
                that.checkData.bloodTime = that.getNowFormatDate();
                that.checkData.urineTime = that.getNowFormatDate();
                that.checkData.biochemistryTime = that.getNowFormatDate();
                that.checkData.metabolizeTime = that.getNowFormatDate();
                that.checkData.thyroidTime = that.getNowFormatDate();
                that.checkData.absorbTime = that.getNowFormatDate();
                that.checkData.formationTime = that.getNowFormatDate();
            }
            ////////获取随访记录相关
            that.blCheckData.idCard = url;
            if (idValue != '') {
                that.blId = url;
                that.blShowCurd = true;
                $.ajax({
                    url: '${URL_BLONELOOSE_DRUGLIST}',
                    data: {
                        idCard: url,
                        checkId: that.blId,
                        preCheck: that.blCheckData.prescribingDrugsPre
                    },
                    dataType: 'json',
                    type: 'get',
                    success: function (data) {
                        if (null != data.dataList && data.dataList.length != 0) {
                            data.dataList.forEach((item, index) => {
                                that.blMedicalList.push({
                                    id: index + 1,
                                    type: item.type,
                                    chemistryName: item.chemistryName,
                                    productName: item.productName,
                                    consumption: item.consumption,
                                    frequency: item.frequency,
                                    mode: item.mode,
                                    useStop: item.useStop
                                })
                            })
                        }
                    }
                })
                // 初始化获取诊疗数据
                $.ajax({
                    url: '${URL_ACCOMPANY_BLDATA}',
                    data: {
                        id: that.blId
                    },
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        console.debug(data);
                        for (let key in data.data) {
                            for (let a in that.blCheckData) {
                                if (a == key) {
                                    that.blCheckData[a] = data.data[key]
                                }
                            }
                        }
                        for (let key in that.blCheckData) {
                            if (that.blCheckData[key] == null) {
                                that.blCheckData[key] = ''
                            }
                        }
                        // 胸椎骨折情况
                        if (null != that.blCheckData.lineChest && that.blCheckData.lineChest.length > 0) {
                            var lineChatList = JSON.parse(that.blCheckData.lineChest);
                            that.blLineChestSelect = lineChatList
                            for (var a = 0; a < lineChatList.length; a++) {
                                for (var i = 0; i < that.blLineChest.length; i++) {
                                    if (lineChatList[a].name == that.blLineChest[i].name) {
                                        that.blLineChest[i].check = true
                                    }
                                }
                            }
                        }
                        that.blCheckData.linePhoto = that.isNull(that.blCheckData.linePhoto);
                        if (that.blCheckData.weight != '' && that.blCheckData.height != '') {
                            if (that.blCheckData.weight == 0 || that.blCheckData.height == 0) {
                                that.blBMI = 0
                            } else {
                                var Num = parseInt(that.blCheckData.height) * 0.01
                                that.blBMI = parseInt(that.blCheckData.weight) / (Num * Num);
                                that.blBMI = that.blBMI.toFixed(2);
                            }
                        } else {
                            that.blBMI = ''
                        }
                        that.blCheckData.smoke = that.isNull(that.blCheckData.smoke);
                        that.blCheckData.drink = that.isNull(that.blCheckData.drink);
                        that.blCheckData.diet = that.isNull(that.blCheckData.diet);
                        that.blCheckData.sleepTime = that.isNull(that.blCheckData.sleepTime);
                        that.blCheckData.sunTime = that.isNull(that.blCheckData.sunTime);
                        that.blCheckData.drug = that.isNull(that.blCheckData.drug);
                        that.blCheckData.hormone = that.isNull(that.blCheckData.hormone);
                        that.blCheckData.sexHomone = that.isNull(that.blCheckData.sexHomone);
                        that.blCheckData.fracture = that.isNull(that.blCheckData.fracture);
                        that.blCheckData.standHelp = that.isNull(that.blCheckData.standHelp);
                        that.blCheckData.checkType = that.isNull(that.blCheckData.checkType);
                        that.blCheckData.usdDrug = that.isNull(that.blCheckData.usdDrug);
                        that.blCheckData.boneType = that.isNull(that.blCheckData.boneType);
                        that.blCheckData.muscleType = that.isNull(that.blCheckData.muscleType);
                        that.blCheckData.walkType = that.isNull(that.blCheckData.walkType);
                        that.blCheckData.newFracture = that.isNull(that.blCheckData.newFracture);
                        that.blCheckData.powerType = that.isNull(that.blCheckData.powerType);
                        that.blCheckData.waistType = that.isNull(that.blCheckData.waistType);
                        that.blCheckData.standHelp = that.isNull(that.blCheckData.standHelp);
                        that.blCheckData.absorb = that.isNull(that.blCheckData.absorb);
                        that.blCheckData.formationTime = that.isNull(that.blCheckData.formationTime);
                        that.blCheckData.metabolize = that.isNull(that.blCheckData.metabolize);
                        that.blCheckData.blood = that.isNull(that.blCheckData.blood)
                        that.blCheckData.urine = that.isNull(that.blCheckData.urine)
                        that.blCheckData.biochemistry = that.isNull(that.blCheckData.biochemistry)
                        that.blCheckData.thyroid = that.isNull(that.blCheckData.thyroid)
                        that.blCheckData.sportMode = that.isNull(that.blCheckData.sportMode)
                        // 引用类型数据回显
                        that.blShowMoreCheck(that.blDrinkingType, that.blCheckData.drinkingType)
                        // 常用锻炼方式数据回显
                        that.blShowMoreCheck(that.blSportMode, that.blCheckData.sportMode)
                        // 其他药物使用情况
                        that.blShowMoreCheck(that.blOtherDrug, that.blCheckData.otherDrug)
                        // 手术史
                        that.blShowMoreCheck(that.blOperation, that.blCheckData.operation)
                        // 本次项目检查
                        that.blShowMoreCheck(that.blCheckProject, that.blCheckData.checkProject)
                        // 下次项目检查
                        that.blShowMoreCheck(that.blCheckProjectNext, that.blCheckData.checkProjectNext);
                        // 骨折
                        that.blShowMoreCheck(that.blLineFracture, that.blCheckData.lineFracture);
                        // 胸椎骨折情况
                        // that.showMoreCheck(that.lineChest, that.checkData.lineChest);
                        // 风湿系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[1].list, that.blCheckData.rheumatismType);
                        // 内分泌及代谢系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[2].list, that.blCheckData.endocrineType);
                        // 循环系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[3].list, that.blCheckData.circulatoryType);
                        // 呼吸系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[4].list, that.blCheckData.breathingType);
                        // 神经及精神系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[5].list, that.blCheckData.nerveType);
                        // 消化系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[6].list, that.blCheckData.digestionType);
                        // 泌尿系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[7].list, that.blCheckData.urineType);
                        // 血液系统疾病
                        that.blShowMoreCheckOther(that.blIllnessData[8].list, that.blCheckData.bloodType);
                        // 先天性及遗传性疾病
                        that.blShowMoreCheckOther(that.blIllnessData[9].list, that.blCheckData.inheritanceType);
                        // 其他
                        that.blShowMoreCheckOther(that.blIllnessData[10].list, that.blCheckData.otherType);
                    }
                })
            } else {
                // 初始化默认随诊日期为今天
                that.blCheckData.checkTime = that.getNowFormatDate();
                that.blCheckData.lineTime = that.getNowFormatDate();
                that.blCheckData.bloodTime = that.getNowFormatDate();
                that.blCheckData.urineTime = that.getNowFormatDate();
                that.blCheckData.biochemistryTime = that.getNowFormatDate();
                that.blCheckData.metabolizeTime = that.getNowFormatDate();
                that.blCheckData.thyroidTime = that.getNowFormatDate();
                that.blCheckData.absorbTime = that.getNowFormatDate();
                that.blCheckData.formationTime = that.getNowFormatDate();
            }
            // 获取病人特殊处理备注信息
            $.ajax({
                url: "${URL_PATIENT_GETSPECREMARK}",
                data: {
                    idCard: url
                },
                dataType: 'json',
                type: 'post',
                success: function (data) {
                    $("#specRemark").val(data.data.specRemark)
                }
            });
            // 数据回显
            $.ajax({
                url: "${URL_BLOOTFAT_PATIENTBLOODFAT}",
                data: {
                    idCard: url
                },
                dataType: 'json',
                type: 'get',
                success: function (data) {
                    if (data.data) {
                        that.bfData = data.data;
                        if (that.bfData.diagnosisTime != null) {
                            that.bfData.diagnosisTime = that.bfData.diagnosisTime.slice(0, 10);
                        }
                        that.bfData.total = parseInt(that.bfData.meat) + parseInt(that.bfData.cream) + parseInt(that.bfData.fried) + parseInt(that.bfData.eggs) + parseInt(that.bfData.meatType)
                        var symptomList = that.$refs.symptom.children;
                        that.noDataShow(that.isArr(data.data.symptom), symptomList);
                        var familyHistoryList = that.$refs.familyHistory.children;
                        that.noDataShow(that.isArr(data.data.familyHistory), familyHistoryList);
                        var complicationSituationList = that.$refs.complicationSituation.children;
                        that.noDataShow(that.isArr(data.data.complicationSituation), complicationSituationList);
                        var complicationList = that.$refs.complication.children;
                        that.noDataShow(that.isArr(data.data.complication), complicationList);
                        var selfCareList = that.$refs.selfCare.children;
                        that.noDataShow(that.isArr(data.data.selfCare), selfCareList);
                        var bffoodList = that.$refs.bffood.children;
                        that.noDataShow(that.isArr(data.data.food), bffoodList);
                        var bfsmokeList = that.$refs.bfsmoke.children;
                        that.noDataShow(that.isArr(data.data.smoke), bfsmokeList);
                        var bfdrinkList = that.$refs.bfdrink.children;
                        that.noDataShow(that.isArr(data.data.drink), bfdrinkList);
                        var bfsportsList = that.$refs.bfsports.children;
                        that.noDataShow(that.isArr(data.data.sports), bfsportsList);
                        var meatList = that.$refs.meat.children;
                        that.noDataShow(that.isArr(data.data.meat), meatList);
                        var meatTypeList = that.$refs.meatType.children;
                        that.noDataShow(that.isArr(data.data.meatType), meatTypeList);
                        var eggsList = that.$refs.eggs.children;
                        that.noDataShow(that.isArr(data.data.eggs), eggsList);
                        var friedList = that.$refs.fried.children;
                        that.noDataShow(that.isArr(data.data.fried), friedList);
                        var creamList = that.$refs.cream.children;
                        that.noDataShow(that.isArr(data.data.cream), creamList);
                    }
                }
            });
            // 获取当前用户的骨松数据
            that.diseasesType = arr1.split('=')[1];
            that.Type = href.split('&')[2].split('=')[1];
            if (that.diseasesType === '1') {
                that.bfinfo = false;
                that.bginfo = false;
                that.bpinfo = true;
                that.rarefaction = false;
                that.isillness = false;
                that.showAcompany = true;
                that.showbf = false;
            } else if (that.diseasesType === '2') {
                that.bpinfo = false;
                that.bfinfo = false;
                that.bginfo = true;
                that.isillness = false;
                that.rarefaction = false;
                that.showAcompany = true;
                that.isBfAccompany = false;
                that.showbf = false;
            } else if (that.diseasesType === '3') {
                that.bpinfo = false;
                that.bginfo = false;
                that.bfinfo = true;
                that.rarefaction = false;
                that.showAcompany = true;
                that.isBfAccompany = true;
                that.showbf = true;
                that.isillness = true;
            } else if (that.diseasesType === '4') {
                that.bpinfo = false;
                that.bginfo = false;
                that.bfinfo = false;
                that.rarefaction = true;
                that.showAcompany = true;
                that.isBfAccompany = false;
                that.showbf = false;
                that.isillness = true;
            } else {
                that.bpinfo = true;
                that.bginfo = true;
                that.bfinfo = true;
                that.isillness = true;
                that.rarefaction = true;
                that.showAcompany = false;
                that.isBfAccompany = false;
                that.showbf = true;
            }
            // 获取建档信息
            $.ajax({
                url: "${URL_PATIENT_PPPATIENTNEWADD}",
                type: 'get',
                dataType: "json",
                data: {
                    idCard: url,
                    iDisplayStart: 0,
                    iDisplayLength: 10
                },
                success: function (data) {
                    if (data.data.list.length == 0) {
                        that.slide = true
                    } else {
                        for (var a = 0; a < data.data.list.length; a++) {
                            data.data.list[a].olderNumber = a + 1
                            if (data.data.list[a].updatedTime != null) {
                                data.data.list[a].updatedTime = data.data.list[a].updatedTime.slice(0, 10)
                            } else if (data.data.list[a].updatedTime == null) {
                                data.data.list[a].updatedTime = data.data.list[a].updatedTime
                            }
                            if (data.data.list[a].diseasesType == 1) {
                                data.data.list[a].diseasesType = '高血压人群'
                            } else if (data.data.list[a].diseasesType == 2) {
                                data.data.list[a].diseasesType = '糖尿病人群'
                            }else if (data.data.list[a].diseasesType == 3) {
                                data.data.list[a].diseasesType = '高血脂人群'
                            } else if (data.data.list[a].diseasesType == 4) {
                                data.data.list[a].diseasesType = '骨松人群'
                            }
                            data.data.list[a].id = '<span style="display:none;">' + data.data.list[a].id + '</span>'
                        }
                        $('#example7').DataTable({
                            data: data.data.list.slice(0, 5),
                            //使用对象数组，一定要配置columns，告诉 DataTables 每列对应的属性
                            columns: [
                                {data: 'olderNumber'},
                                {data: 'id'},
                                {data: 'idCard'},
                                {data: 'diseasesType'},
                                {data: 'updatedTime'},
                            ],
                            lengthChange: false,
                            paging: false,
                            searching: false,
                            info: false,
                            bAutoWidth: true,
                        })
                    }
                }
            })

            // 初始化获取疼痛信息
            $.ajax({
                url: "${URL_INDEX_SEARCHPAIN}",
                type: 'post',
                dataType: "json",
                success: function (data) {
                    that.pain = data.data.reverse();
                    for (var a = 0; a < that.pain.length; a++) {
                        that.pain[a].key = 'pain' + that.pain[a].key
                    }
                }
            });

            // 根据身份证号，查询最近7天是否未测量过血压/血糖
            queryNotTestDataSevenDays(idCard);

            // 获取病人信息
            $.ajax({
                url: "${URL_PATIENT_PATIENTINFO}",
                type: 'post',
                dataType: "json",
                data: {
                    idCard: url
                },
                success: function (data) {
                    if (data.data.synchronizationType == 1) {
                        that.synchronous = true
                        if (data.data.synchronization == 1) {
                            that.btnText = '正在同步'
                            that.dis = true
                            that.setTime()
                        } else {
                            that.btnText = '同步'
                        }
                    } else {
                        that.synchronous = false
                    }
                    that.infor = data.data;


                    var arrType = ['高血压人群', '糖尿病人群', '高血脂人群', '骨松人群'];

                    if(that.infor.diseasesType != null && that.infor.diseasesType.length > 0){
                      var arrListType = that.infor.diseasesType.split(',');
                    }else{
                      var arrListType = [];
                    }
                    that.infor.diseasesType = '';
                    arrListType.forEach((item, index) => {
                        that.infor.diseasesType += arrType[item - 1] + ','
                    })
                    that.getUltData(that.infor.idcard)
//                    that.infor.diseasesType = Type(that.infor.diseasesType)
                    if (that.diseasesType != '') {
                        that.initTable(that.infor.idcard)
                    }
                    // 判断疼痛等级
                    if (that.infor.painLevel != null) {
                        that.painLevel(that.infor.painLevel)
                    } else {
                        that.painLevel()
                    }
                    // 判断体重是否为0
                    if (that.infor.weight === '0') {
                        that.infor.weight = ""
                    }
                    // 判断BMI是否为0
                    if (that.infor.bMI === 0) {
                        that.infor.bMI = ""
                    }
                    // 判断身高是否为0
                    if (that.infor.height === '0') {
                        that.infor.height = ""
                    }
                    // 判断是否抽烟
                    if (that.infor.smoke == null) {

                    } else if (that.infor.smoke === 1) {
                        $("#s1").attr("checked", "checked")
                    } else if (that.infor.smoke === 2) {
                        $("#s2").attr("checked", "checked")
                    }
                    // 判断烟酒情况
                    if (that.infor.drink == null) {

                    } else if (that.infor.drink === 1) {
                        $("#z1").attr("checked", "checked")
                    } else if (that.infor.drink === 2) {
                        $("#z2").attr("checked", "checked")
                    }
                    // 判断是否体力劳动者
                    if (that.infor.physical == null) {

                    } else if (that.infor.physical === 1) {
                        $("#y1").attr("checked", "checked")
                    } else if (that.infor.physical === 2) {
                        $("#y2").attr("checked", "checked")
                    }

                    // 填充【最高血压值数据】
                    if (that.infor.highestBpSystolic == null) {
                        $("#highestBpSystolic").val(0);
                    } else {
                        $("#highestBpSystolic").val(that.infor.highestBpSystolic);
                    }
                    if (that.infor.highestBpDiastolic == null) {
                        $("#highestBpDiastolic").val(0);
                    } else {
                        $("#highestBpDiastolic").val(that.infor.highestBpDiastolic);
                    }

                    // debugger;
                    // 判断血压测量地点类型
                    // console.log("that.infor.bpTestPlace: " + that.infor.bpTestPlace);
                    if (that.infor.bpTestPlace == null) {

                    } else if (that.infor.bpTestPlace === 1) {
                        $("#bpTestPlace1").addClass('checked')
                    } else if (that.infor.bpTestPlace === 2) {
                        $("#bpTestPlace2").addClass('checked')
                    }

                    // 判断高血压类型
                    if (that.infor.bpType == null) {

                    } else if (that.infor.bpType === 2) {
                        $("#gxy2").addClass('checked')
                    } else if (that.infor.bpType === 3) {
                        $("#gxy3").addClass('checked')
                    } else if (that.infor.bpType === 1) {
                        $("#gxy1").addClass('checked')
                    }

                    // 判断骨松类型
                    if(that.infor.blType == null) {
                        $("#blType1").prop("checked","false");
                        $("#blType2").prop("checked","false");
                        $("#blType3").prop("checked","false");
                    }else if(that.infor.blType == 1) {
                        $("#blType1").addClass('checked')
                    }else if(that.infor.blType == 2) {
                        $("#blType2").addClass('checked')
                    }else if(that.infor.blType == 3) {
                        $("#blType3").addClass('checked')
                    }
                    console.log(that.infor.blType);
                    /*if (that.infor.blType == null) {

                    } else if (that.infor.blType === 1) {
                        $("#blType1").attr("checked", "checked")
                    } else if (that.infor.blType === 2) {
                        $("#blType2").attr("checked", "checked")
                    } else if (that.infor.blType === 3) {
                        $("#blType3").attr("checked", "checked")
                    }*/
                    that.checkData.blType = data.data.blType;

                    // 判断高血压并发症
                    var check = that.infor.bpComplication;
                    if (check == null) {
                        // 没有选择

                    } else if (check.length === 1) {
                        // 当只选择一种并发症
                        that.checks(check)
                    } else if (check.length === 3) {
                        // 当选择两种并发症
                        that.checks(check[0])
                        that.checks(check[2])
                    } else if (check.length === 5) {
                        // 当选择三种并发症
                        that.checks(check[0])
                        that.checks(check[2])
                        that.checks(check[4])
                    } else if (check.length === 7) {
                        // 当选择四种并发症
                        that.checks(check[0])
                        that.checks(check[2])
                        that.checks(check[4])
                        that.checks(check[6])
                    } else if (check.length === 9) {
                        // 当选择五种并发症
                        that.checks(check[0])
                        that.checks(check[2])
                        that.checks(check[4])
                        that.checks(check[6])
                        that.checks(check[8])
                    }
                    //  判断血糖并发症
                    var checkbs = that.infor.bsComplication;
                    if (checkbs == null) {
                        // 没有选择

                    } else if (checkbs.length === 1) {
                        // 当只选择一种并发症
                        that.checkbs(checkbs)
                    } else if (checkbs.length === 3) {
                        // 当选择两种并发症
                        that.checkbs(checkbs[0])
                        that.checkbs(checkbs[2])
                    } else if (checkbs.length === 5) {
                        // 当选择三种并发症
                        that.checkbs(checkbs[0])
                        that.checkbs(checkbs[2])
                        that.checkbs(checkbs[4])
                    } else if (checkbs.length === 7) {
                        // 当选择四种并发症
                        that.checkbs(checkbs[0])
                        that.checkbs(checkbs[2])
                        that.checkbs(checkbs[4])
                        that.checkbs(checkbs[6])
                    } else if (checkbs.length === 9) {
                        // 当选择五种并发症
                        that.checkbs(checkbs[0])
                        that.checkbs(checkbs[2])
                        that.checkbs(checkbs[4])
                        that.checkbs(checkbs[6])
                        that.checkbs(checkbs[8])
                    } else if (checkbs.length === 11) {
                        // 当选择六种并发症
                        that.checkbs(checkbs[0])
                        that.checkbs(checkbs[2])
                        that.checkbs(checkbs[4])
                        that.checkbs(checkbs[6])
                        that.checkbs(checkbs[8])
                        that.checkbs(checkbs[10])
                    } else if (checkbs.length === 13) {
                        // 当选择七种并发症
                        that.checkbs(checkbs[0])
                        that.checkbs(checkbs[2])
                        that.checkbs(checkbs[4])
                        that.checkbs(checkbs[6])
                        that.checkbs(checkbs[8])
                        that.checkbs(checkbs[10])
                        that.checkbs(checkbs[12])
                    }
                    // 判断糖尿病等级
                    if (that.infor.bsType == null) {

                    } else if (that.infor.bsType === 2) {
                        $("#tn2").attr("checked", "checked")
                    } else if (that.infor.bsType === 3) {
                        $("#tn3").attr("checked", "checked")
                    } else if (that.infor.bsType === 1) {
                        $("#tn1").attr("checked", "checked")
                    } else if (that.infor.bsType === 4) {
                        $("#tn4").attr("checked", "checked")
                    }
                    // 初始化获取检验数据
                    $.ajax({
                        url: "${URL_TESTPROJECT_CHECKINFO}",
                        type: 'post',
                        dataType: "json",
                        data: {
                            idCard: that.infor.idcard
                        },
                        success: function (data) {
                            if (data.data.list != '') {
                                that.test = false
                                for (var a = 0; a < data.data.list.length; a++) {
                                    data.data.list[a].olderNumber = a + 1
                                    if (data.data.list[a].checkTime == null) {
                                        data.data.list[a].checkTime = ''
                                    } else {
                                        data.data.list[a].checkTime = data.data.list[a].checkTime.slice(0, 10)
                                    }
                                    data.data.list[a].check = '<input class="check_id" type="checkbox">' + '<span style="display:none;">' + data.data.list[a].type + '</span>'
                                    data.data.list[a].id = '<span style="display:none;">' + data.data.list[a].id + '</span>'
                                }
                                $('#example2').DataTable({
                                    data: data.data.list.slice(0, 5),
                                    //使用对象数组，一定要配置columns，告诉 DataTables 每列对应的属性
                                    columns: [
                                        {data: 'check'},
                                        {data: 'olderNumber'},
                                        {data: 'id'},
                                        {data: 'checkProject'},
                                        {data: 'checkResult'},
                                        {data: 'checkTime'}
                                    ],
                                    lengthChange: false,
                                    paging: false,
                                    searching: false,
                                    info: false,
                                    bAutoWidth: true,
                                })
                            } else {
                                that.test = true
                            }
                        }
                    })
                    // 初始化获取检验项目数据
                    $.ajax({
                        url: "${URL_TESTPROJECT_TESTINFO}",
                        type: 'post',
                        dataType: "json",
                        data: {
                            idCard: that.infor.idcard
                        },
                        success: function (data) {
                            if (data.data.list != '') {
                                that.checkTestProject = false
                                for (var a = 0; a < data.data.list.length; a++) {
                                    data.data.list[a].olderNumber = a + 1
                                    if(data.data.list[a].createTime){
                                        data.data.list[a].createTime = data.data.list[a].createTime.slice(0, 10)
                                    }
                                    data.data.list[a].check = '<input class="test_id" type="checkbox">' + '<span style="display:none;">' + data.data.list[a].type + '</span>'
                                    data.data.list[a].id = '<span style="display:none;">' + data.data.list[a].id + '</span>'
                                }
                                $('#example3').DataTable({
                                    data: data.data.list.slice(0, 5),
                                    //使用对象数组，一定要配置columns，告诉 DataTables 每列对应的属性
                                    columns: [
                                        {data: 'check'},
                                        {data: 'olderNumber'},
                                        {data: 'id'},
                                        {data: 'lagerProjectName'},
                                        {data: 'smallProjectName'},
                                        {data: 'testResult'},
                                        {data: 'referenceValue'},
                                        {data: 'unit'},
                                        {data: 'createTime'},
                                        {data: 'doctorName'},
                                        {data: 'hospitalName'}
                                    ],
                                    lengthChange: false,
                                    paging: false,
                                    searching: false,
                                    info: false,
                                    bAutoWidth: true,
                                })
                            } else {
                                that.checkTestProject = true
                            }
                        }
                    })
                    // 初始化特殊处理数据
                    $.ajax({
                        url: "${URL_SPECPROJECT_SPECREMARKINFO}",
                        type: 'post',
                        dataType: "json",
                        data: {
                            idCard: that.infor.idcard
                        },
                        success: function (data) {
                            if (data.data.list != '') {
                                that.check = false
                                for (var a = 0; a < data.data.list.length; a++) {
                                    data.data.list[a].olderNumber = a + 1
                                    data.data.list[a].createTime = data.data.list[a].createTime.slice(0)
                                    data.data.list[a].check = '<input class="test_id" type="checkbox">' + '<span style="display:none;">' + data.data.list[a].type + '</span>'
                                    data.data.list[a].id = '<span style="display:none;">' + data.data.list[a].id + '</span>'
                                }
                                $('#example8').DataTable({
                                    data: data.data.list.slice(0, 5),
                                    //使用对象数组，一定要配置columns，告诉 DataTables 每列对应的属性
                                    columns: [
                                        {data: 'check'},
                                        {data: 'olderNumber'},
                                        {data: 'id'},
                                        {data: 'createTime'},
                                        {data: 'specRemark'}
                                    ],
                                    lengthChange: false,
                                    paging: false,
                                    searching: false,
                                    info: false,
                                    bAutoWidth: true,
                                })
                            } else {
                                that.check = true
                            }
                        }
                    })
                }
            })
            // 【特殊处理】
            // 初始化一周高血压数据
            that.getWeekBpData();
            // 初始化一周糖尿病数据
            that.getWeekBsData();

            // 获取检测报告信息
            $.ajax({
                url: "${URL_PATIENT_REPORTNEWS}",
                type: 'post',
                dataType: "json",
                data: {
                    idCard: url
                },
                success: function (data) {
                    if (data.data.list.length === 0) {
                        that.show = true
                    } else {
                        that.report = data.data.list.slice(0, 9);
                        that.testTime = that.report
                        for (var i = 0; i < that.report.length; i++) {
                            that.report[i].time = that.report[i].testTime.slice(0, 10)
                        }
                        $('#example').DataTable({
                            data: that.report,
                            //使用对象数组，一定要配置columns，告诉 DataTables 每列对应的属性
                            columns: [
                                {data: 'testKindName'},
                                {data: 'time'},
                                {data: 'source'},
                                {data: 'testPerson'}
                            ],
                            lengthChange: false,
                            paging: false,
                            searching: false,
                            info: false,
                            bAutoWidth: false,
                            bSort: false,
                        })
                        $('#example tbody').on('click', 'tr', function () {
                            var tr = $(this);
                            var index = tr[0].rowIndex;
                            var testTime = that.testTime[index - 1].testTime;
                            var testKindCode = that.report[index - 1].testKindCode;
                            var testKindName = that.report[index - 1].testKindName;
                            $.ajax({
                                url: "${URL_SCREENING_GETBREADLINE}",
                                dataType: 'json',
                                type: 'post',
                                success: function (data) {
                                    breadLine = JSON.parse(data.data)
                                    var urllist = '${URL_PATIENT_RORECARDDETAIL}?idCard=' + url + "&testTime=" + testTime + "&testKindCode=" + testKindCode + "&testKindName=" + encodeURI(testKindName)
                                    breadLine.push({
                                        name: '检查项目',
                                        href: url
                                    })

                                    $.ajax({
                                        url: '${URL_SCREENING_SAVEBREADLINE}',
                                        data: {
                                            breadLine: JSON.stringify(breadLine)
                                        },
                                        dataType: 'json',
                                        type: 'post',
                                        success: function (data) {
                                            if (data.success) {
                                                parent.showSrc(urllist)
                                            }
                                        }
                                    })
                                }
                            })
                            <%--parent.showSrc('${URL_PATIENT_RORECARDDETAIL}?idCard=' + url+ "&testTime=" + testTime + "&testKindCode=" + testKindCode + "&testKindName=" + encodeURI(testKindName))--%>
                        });
                    }
                }
            })
            // 获取用药信息
            $.ajax({
                url: "${URL_PATIENT_MEDICALINFO}",
                type: 'post',
                dataType: "json",
                data: {
                    idCard: url,
                    iDisplayStart: 0,
                    iDisplayLength: 5
                },
                success: function (data) {
                    if (data.data.list.length === 0) {
                        that.slide = true
                    } else {
                        that.medical.push(data.data.list);
                        for (var a = 0; a < that.medical[0].length; a++) {
                            that.medical[0][a].olderNumber = a + 1
                            if (that.medical[0][a].recordTime != null) {
                                that.medical[0][a].recordTime = that.medical[0][a].recordTime.slice(0, 10)
                            } else if (that.medical[0][a].recordTime == null) {
                                that.medical[0][a].recordTime = that.medical[0][a].recordTime
                            }
                            if (that.medical[0][a].useType == 0) {
                                that.medical[0][a].useType = '其他'
                            } else if (that.medical[0][a].useType == 1) {
                                that.medical[0][a].useType = '口服'
                            }else if (that.medical[0][a].useType == 2) {
                                that.medical[0][a].useType = '皮下注射'
                            } else if (that.medical[0][a].useType == 3) {
                                that.medical[0][a].useType = '肌肉注射'
                            }
                            that.medical[0][a].check = '<input class="all_id" type="checkbox">' + '<span style="display:none;">' + that.medical[0][a].type + '</span>'
                            that.medical[0][a].id = '<span style="display:none;">' + that.medical[0][a].id + '</span>'
                        }
                        $('#example1').DataTable({
                            data: that.medical[0],
                             //使用对象数组，一定要配置columns，告诉 DataTables 每列对应的属性
                            columns: [
                                {data: 'check'},
                                {data: 'olderNumber'},
                                {data: 'id'},
                                {data: 'medicalName'},
                                {data: 'numbers'},
                                {data: 'medicalSpecs'},
                                {data: 'medicalFrequency'},
                                {data: 'useType'},
                                {data: 'doctorName'},
                                {data: 'recordTime'}
                            ],
                            lengthChange: false,
                            paging: false,
                            searching: false,
                            info: false,
                            bAutoWidth: true,
                        })
//                         绑定药名id
                        var tr = $('#example1 tbody tr')
                        for (var a = 0; a < that.medical[0].length; a++) {
                            $(tr[a])[0].children[2].title = that.medical[0][a].medicalId
                            $(tr[a])[0].children[2].value = that.medical[0][a].id
                        }
                    }
                }
            })

            // 获取生命特征信息
            $.ajax({
                url: "${URL_PATIENT_VITALCHARACTERISTICSINFO}",
                type: 'post',
                dataType: "json",
                data: {
                    idCard: url,
                    iDisplayStart: 0,
                    iDisplayLength: 5
                },
                success: function (data) {
                    if (data.data.list.length === 0) {

                    } else {
                        that.vital.push(data.data.list);
                        console.log(that.vital[0])
                        $('#example23').DataTable({
                            data: that.vital[0],
                            //使用对象数组，一定要配置columns，告诉 DataTables 每列对应的属性
                            columns: [
                                {data: 'temperature'},
                                {data: 'pulse'},
                                {data: 'breath'},
                                {data: 'minimumPressure'},
                                {data: 'highestPressure'},
                                {data: 'createTime'}
                            ],
                            lengthChange: false,
                            paging: false,
                            searching: false,
                            info: false,
                            bAutoWidth: true,
                        })
                    }
                }
            })

            // 获取血压趋势数据
            $.ajax({
                url: "${URL_PATIENT_BPINFO}",
                type: "post",
                dataType: "json",
                data: {
                    idCard: url
                },
                success: function (data) {
                    console.debug(data);
                    // 判断数据是否有值
                    if (data.data.bpList == null) {
                        that.mainbar = false;
                        that.illness.number1 = 0;
                        that.illness.number = 0;
                        that.isCheckBp = true;
                        that.xyqs = false;
                    } else {
                        // DateDifference
                        // 获取当前时间戳
                        var timestamp = Date.parse(new Date());
                        var date = Date.parse(data.data.bpList[0].testTime);
                        if (that.DateDifference(date, timestamp) > 14) {
                            that.isCheckBp = true
                        } else {
                            that.isCheckBp = false
                        }
                        // 动态插入 echart 节点
                        var str = $("<div></div>")
                        // 设置ID
                        $(str).attr('id', 'mainBar');
                        // 插入节点
                        $(".mainbar").append(str)
                        // 设置样式
                        $("#mainBar").css({
                            'width': "97%",
                            "height": "320px"
                        })
                        var dataJosn;
                        if (data.data.bpList.length > 21) {
                            dataJosn = data.data.bpList.slice(0, 21).reverse()
                        } else {
                            dataJosn = data.data.bpList.reverse()
                        }
                        // 获取对应数据 渲染页面
                        // 显示echart曲线图
                        that.mainbar = true;
                        // 获取对应的数据值
                        for (var a = 0; a < dataJosn.length; a++) {
                            // 判断 分别获取对应数据
                            // 获取收缩压数据
                            if (dataJosn[a].testItemCode === '104001') {
                                that.BpInfo.firstjson.push(dataJosn[a].testValue);
                                // 获取检测时间 格式为 XX-YY
                                that.BpInfo.data.push(dataJosn[a].testTime);
                                // 获取最后一主数据的值 并渲染
                                that.illness.number1 = that.BpInfo.firstjson[0];
                            }
                            // 获取舒张压数据
                            if (dataJosn[a].testItemCode === '104002') {
                                that.BpInfo.secondjson.push(dataJosn[a].testValue);
                                // 获取舒张压最后一组数据的值
                                that.illness.number = that.BpInfo.secondjson[0];
                            }
                        }
                        var maxBp = that.getBpMax(that.BpInfo.firstjson, that.BpInfo.secondjson)
                        //基于准备好的dom,初始化echart图表
                        var myChart = echarts.init(document.getElementById('mainBar'))
                        var options = {
                            'title': {
                                'text': '血压(mmHg)',
                                'textStyle': {
                                    'color': '#b0b0b0',
                                    'fontStyle': 'normal',
                                    'fontWeight': 'lignter',
                                    'fontSize': 25
                                }
                            },
                            'tooltip': {
                                'trigger': 'axis',
                                'formatter': function (params) {
                                    var str = ''
                                    for (var i = 0; i < params.length; i++) {
                                        if (params.length === '0') {
                                            str += ""
                                        } else {
                                            str += params[i].marker + params[i].seriesName + ":" + params[i].data + "<br>"
                                        }
                                    }
                                    if (params.length === '0') {
                                        str += ""
                                    } else {
                                        params.push({
                                            time: params[0].axisValue
                                        })
                                        str += '检查时间' + ':' + params[params.length - 1].time
                                    }
                                    return str
                                }
                            },
                            'calculable': true,
                            'grid': {
                                'left': '2%',
                                'right': '7%',
                                'top': '10%',
                                'bottom': '5%',
                                'containLabel': true,
                                'y2': 50,
                                'borderWidth': '0'
                            },
                            'xAxis': [{
                                'type': 'category',
                                'boundaryGap': true,
                                'axisLabel': {'interval': 0},
                                'data': that.BpInfo.data,
                                'splitNumber': 7,
                                'axisLabel': {
                                    'intreval': 'auto',
                                    'textStyle': {
                                        'color': 'black',
                                        'fontSize': '14'
                                    },
                                    'formatter': function (value) {
                                        return value.slice(0, 10)
                                    }
                                },
                                'splitLine': {
                                    'show': false
                                },
                                'axisLine': {
                                    'lineStyle': {
                                        'color': '#b6b6b6'
                                    }
                                },
                                'axisTick': {
                                    'show': false
                                }
                            }],
                            'yAxis': [
                                {
                                    'type': 'value',
                                    'max': maxBp,
                                    'min': 0,
                                    'axisLabel': {
                                        'intreval': 0,
                                        'textStyle': {
                                            'color': 'black',
                                            'fontSize': '16',
                                            'shadowOffset': -5
                                        }
                                    },
                                    'splitLine': {
                                        'show': false
                                    },
                                    'axisLabel': {
                                        formatter: function () {
                                            return "";
                                        }
                                    },
                                    'axisLine': {
                                        'lineStyle': {
                                            'color': '#b6b6b6'
                                        }
                                    },
                                    'axisTick': {
                                        'show': false
                                    }
                                },
                                {
                                    'type': 'value',
                                    'max': maxBp,
                                    'min': 0,
                                    'splitLine': {
                                        'show': false
                                    },
                                    'show': false,
                                    'axisLabel': {
                                        'intreval': 0,
                                        'textStyle': {
                                            'color': 'black',
                                            'fontSize': '16',
                                            'shadowOffset': -5
                                        }
                                    },
                                    'axisLabel': {
                                        formatter: function () {
                                            return "";
                                        }
                                    },
                                    'axisLine': {
                                        'lineStyle': {
                                            'color': '#b6b6b6'
                                        }
                                    },
                                    'axisTick': {
                                        'show': false
                                    }
                                }
                            ],
                            'series': [
                                {
                                    'name': '收缩压',
                                    'type': 'line',
                                    'data': that.BpInfo.firstjson,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#00d2cb',
                                            'lineStyle': {
                                                'color': '#00d2cb'
                                            }
                                        }
                                    },
                                    'symbolSize': function (value) {
                                        return Math.round(value[2] / 10) + 2;
                                    },
                                    'markLine': {
                                        'symbol': 'none',
                                        'symbolSize': [4, 2],
                                        'itemStyle': {
                                            'normal': {
                                                'label': {
                                                    'position': 'left',
                                                    'textStyle': {'color': 'black'}
                                                }
                                            }
                                        },
                                        'data': [
                                            {
                                                'yAxis': 140,
                                                'name': '140',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#feacb0'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 160,
                                                'name': '160',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#fd5962'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 180,
                                                'name': '180',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': 'red'
                                                    }
                                                }
                                            }
                                        ]
                                    },
                                    'symbol': 'circle',
                                    'symbolSize': 16
                                },
                                {
                                    'name': '舒张压',
                                    'type': 'line',
                                    'data': that.BpInfo.secondjson,
                                    'symbol': 'circle',
                                    'symbolSize': 18,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#3a85ff',
                                            'lineStyle': {
                                                'color': '#3a85ff'
                                            }
                                        }
                                    },
                                    'markLine': {
                                        'symbol': 'none',
                                        'symbolSize': [4, 2],
                                        'itemStyle': {
                                            'normal': {
                                                'label': {
                                                    'position': 'left',
                                                    'textStyle': {'color': 'black'}
                                                }
                                            }
                                        },
                                        'data': [
                                            {
                                                'yAxis': 60,
                                                'name': '60',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#feacb0'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 90,
                                                'name': '90',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#fd5962'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 110,
                                                'name': '110',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#red'
                                                    }
                                                }
                                            }
                                        ]
                                    },
                                    'symbol': 'circle',
                                    'symbolSize': 16
                                }
                            ]
                        }
                        myChart.setOption(options)
                        window.addEventListener('resize', function () {
                            myChart.resize()
                        })
                    }
                }
            })
            // 获取血糖信息
            $.ajax({
                url: "${URL_PATIENT_BGREPORT}",
                type: "post",
                dataType: "json",
                data: {
                    idCard: url
                },
                success: function (data) {
                    // 判断数据是否有值
                    if (data.data.list.length == '0') {
                        // 显示暂无数据
                        that.chartmain = false;
                        // 显示最后一组数据的值为0=
                        that.illness1.number1 = 0;
                        that.illness1.number = 0;
                        that.isCheckBf = true;
                        that.xtqs = false;
                        // $('#bgRemark').text('您已一周未进行血糖数据测量');
                        // $('#bgRemark').css("color","red");
                    } else {
                        // DateDifference
                        // 获取当前时间戳
                        var timestamp = Date.parse(new Date());
                        var date = Date.parse(data.data.list[0].testTime)
                        if (that.DateDifference(date, timestamp) > 14) {
                            that.isCheckBf = true
                        } else {
                            that.isCheckBf = false
                        }
                        // 动态插入 echart dom
                        var str = $("<div></div>")
                        // 添加 id 名称
                        $(str).attr('id', 'chart');
                        // 插入dom节点内容
                        $(".chart").append(str)
                        // 添加曲线图样式
                        $("#chart").css({
                            'width': "97%",
                            "height": "320px"
                        })
                        // 显示曲线图
                        that.chartmain = true;
                        var dataJosn;
                        var datas = []
                        if (data.data.list.length > 7) {
                            dataJosn = data.data.list.slice(0, 7).reverse()
                        } else {
                            dataJosn = data.data.list.reverse()
                        }
                        // 截取数据长度 部分显示
                        that.BsInfo.firstjson.length = dataJosn.length
                        that.BsInfo.secondjson.length = dataJosn.length
                        for (var a = 0; a < dataJosn.length; a++) {
                            // 将code为105001的数据添加到新数组中
                            // 获取空腹血压数据
                            // 获取检测时间
                            if (dataJosn[a].testItemCode === '105001') {
                                if (dataJosn[a].testValue < Number('33')) {
                                    that.BsInfo.data.push(dataJosn[a].testValue);
                                    that.BsInfo.firstjson[a] = dataJosn[a].testValue;
                                    datas.push(dataJosn[a].testTime)
                                    console.log(that.BsInfo)
                                }
                            } else if (dataJosn[a].testItemCode === '105002') {
                                if (dataJosn[a].testValue < Number('33')) {
                                    that.BsInfo.data1.push(dataJosn[a].testValue);
                                    that.BsInfo.secondjson[a] = dataJosn[a].testValue;
                                    datas.push(dataJosn[a].testTime);
                                }
                            }
                        }
                        // 获取当前时间戳
                        /*
                        var timestamp = Date.parse(new Date());
                        var date = Date.parse(dataJosn[dataJosn.length-1].testTime);
                        if( that.DateDifference(date, timestamp) > 7 ){
                            $('#bgRemark').text('您已一周未进行血糖数据测量');
                            $('#bgRemark').css("color","red");
                        }
                        */
                        var maxVal = that.getMax(that.BsInfo.firstjson, that.BsInfo.secondjson)
                        that.illness1.number = that.BsInfo.data[that.BsInfo.data.length - 1];
                        that.illness1.number1 = that.BsInfo.data1[that.BsInfo.data1.length - 1];
                        // 渲染 echart 曲线图
                        var Chart = echarts.init(document.getElementById('chart'));
                        var select = {
                            'title': {
                                'text': '血糖(mmHg)',
                                'textStyle': {
                                    'color': '#b0b0b0',
                                    'fontStyle': 'normal',
                                    'fontWeight': 'lignter',
                                    'fontSize': 18
                                }
                            },
                            'tooltip': {
                                'trigger': 'axis',
                                'formatter': function (params) {
                                    var str = ''
                                    for (let a = 0; a < params.length; a++) {
                                        if (params[a].data) {
                                            str += params[a].marker + params[a].seriesName + ":" + params[a].data + "<br>"
                                        }
                                    }
                                    if (params.length === '0') {
                                        str += ""
                                    } else {
                                        params.push({
                                            time: params[0].axisValue
                                        })
                                        str += '检查时间' + ':' + params[params.length - 1].time
                                    }
                                    return str
                                }
                            },
                            'calculable': true,
                            'grid': {
                                'left': '2%',
                                'right': '7%',
                                'top': '10%',
                                'bottom': '5%',
                                'containLabel': true,
                                'y2': 50
                            },
                            'xAxis': [{
                                'type': 'category',
                                'boundaryGap': true,
                                'axisLabel': {'interval': 0},
                                'data': datas,
//                            'boundaryGap':true,'data':datas,
                                'splitNumber': 7,
                                'axisLabel': {
                                    'intreval': 'auto',
                                    'textStyle': {
                                        'color': 'black',
                                        'fontSize': '14'
                                    },
                                    'formatter': function (value) {
                                        return value.slice(0, 10)
                                    }
                                },
                                'splitLine': {
                                    'show': false
                                },
                                'axisLine': {
                                    'lineStyle': {
                                        'color': '#b6b6b6'
                                    }
                                },
                                'axisTick': {
                                    'show': false
                                }
                            }],
                            'yAxis': [
                                {
                                    'type': 'value',
                                    // 'name':'收缩压',
                                    'max': maxVal,
                                    'min': 0,
                                    'axisLabel': {
                                        'intreval': 0,
                                        'textStyle': {
                                            'color': 'black',
                                            'fontSize': '16',
                                            'shadowOffset': -5
                                        }
                                    },
                                    'splitLine': {
                                        'show': false
                                    },
                                    'axisLabel': {
                                        formatter: function () {
                                            return "";
                                        }
                                    },
                                    'axisLine': {
                                        'lineStyle': {
                                            'color': '#b6b6b6'
                                        }
                                    },
                                    'axisTick': {
                                        'show': false
                                    }
                                },
                                {
                                    'type': 'value',
                                    'max': 15,
                                    'min': 0,
                                    'splitLine': {
                                        'show': false
                                    },
                                    'show': false,
                                    'axisLabel': {
                                        'intreval': 0,
                                        'textStyle': {
                                            'color': 'black',
                                            'fontSize': '16',
                                            'shadowOffset': -5
                                        }
                                    },
                                    'axisLabel': {
                                        formatter: function () {
                                            return "";
                                        }
                                    },
                                    'axisLine': {
                                        'lineStyle': {
                                            'color': '#b6b6b6'
                                        }
                                    },
                                    'axisTick': {
                                        'show': false
                                    }
                                }
                            ],
                            'series': [
                                {
                                    'name': '餐后两小时',
                                    'type': 'line',
                                    'markLine': {
                                        'symbol': 'none',
                                        'symbolSize': [4, 2],
                                        'itemStyle': {
                                            'normal': {
                                                'lineStyle': {'color': 'red'},
                                                'barBorderColor': 'red',
                                                'label': {
                                                    'position': 'left',
                                                    // formatter:function(params){
                                                    //     return 100;
                                                    // },
                                                    'textStyle': {'color': 'black'}
                                                }
                                            }
                                        },
                                        'data': [
                                            {
                                                'yAxis': 4.4,
                                                'name': '4.4',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            }
                                        ]
                                    },
                                    'data': that.BsInfo.secondjson,
                                    'symbol': 'circle',
                                    'symbolSize': 18,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#3a85ff',
                                            'lineStyle': {
                                                'color': '#3a85ff'
                                            }
                                        }
                                    }
                                },
                                {
                                    'name': '空腹血糖',
                                    'type': 'line',
                                    'markLine': {
                                        'symbol': 'none',
                                        'symbolSize': [4, 2],
                                        'itemStyle': {
                                            'normal': {
                                                'lineStyle': {'color': 'red'},
                                                'barBorderColor': 'red',
                                                'label': {
                                                    'position': 'left',
                                                    'textStyle': {'color': 'black'}
                                                }
                                            }
                                        },
                                        'data': [
                                            {
                                                'yAxis': 6,
                                                'name': '6',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 7,
                                                'name': '7',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 8,
                                                'name': '8',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 9,
                                                'name': '9',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 10,
                                                'name': '10',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            },
                                            {
                                                'yAxis': 11.1,
                                                'name': '11.1',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            }
                                        ]
                                    },
                                    'data': that.BsInfo.firstjson,
                                    'symbol': 'circle',
                                    'symbolSize': 18,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#00d2cb',
                                            'lineStyle': {
                                                'color': '#00d2cb'
                                            }
                                        }
                                    }
                                }
                            ]
                        };
                        Chart.setOption(select);
                        window.addEventListener("resize", function () {
                            Chart.resize();
                        })
                    }
                }
            })
            // 获取血脂信息
            $.ajax({
                url: "${URL_BF_PATIENTBFTESTS}",
                type: "post",
                dataType: "json",
                data: {
                    idCard: url
                },
                success: function (data) {
                    // 判断数据是否有值
                    if (data.dataList.length === 0) {
                        // 显示暂无数据
                        that.chartBf = false;
                        // 显示最后一组数据的值为0=
                        that.illness2.number2 = 0;
                        that.illness2.number1 = 0;
                        that.illness2.number = 0;
                        that.illness2.number3 = 0;
                        that.illness2.number4 = 0;
                        that.illness2.number5 = 0;
                        that.illness2.number6 = 0;
                        that.xzqs = false;
                    } else {
                        // 动态插入 echart dom
                        var str = $("<div></div>")
                        // 添加 id 名称
                        $(str).attr('id', 'chartbf');
                        // 插入dom节点内容
                        $(".bfchart").append(str)
                        // 添加曲线图样式
                        $("#chartbf").css({
                            'width': "97%",
                            "height": "320px"
                        })
                        // 显示曲线图
                        that.chartBf = true;
                        // 截取数据长度 部分显示
                        var dataJosn;
                        if (data.dataList.length > 7) {
                            dataJosn = data.dataList.slice(0, 7).reverse()
                        } else {
                            dataJosn = data.dataList.reverse()
                        }
                        for (var a = 0; a < dataJosn.length; a++) {
                            // 将code为105001的数据添加到新数组中
                            // 获取空腹血压数据
                            // 获取检测时间
                            // 总胆固醇
                            that.BfInfo.secondjson.push(dataJosn[a].valueTg);   //三酰甘油
                            that.BfInfo.thirdjson.push(dataJosn[a].valueHdl);   //高密度脂蛋白胆固醇
                            that.BfInfo.firstjson.push(dataJosn[a].valueTc);    //高胆固醇
                            that.BfInfo.fourthjson.push(dataJosn[a].valueLdl);  //低密度脂蛋白胆固醇
                            that.BfInfo.fifthjson.push(dataJosn[a].valueHcy);   //同型半胱氨酸
                            that.BfInfo.sixthjson.push(dataJosn[a].valueApoB);  //载脂蛋白
                            that.BfInfo.seventhjson.push(dataJosn[a].valueApoAI);   //载脂蛋白AI
                            that.BfInfo.data2.push(dataJosn[a].TestTime)
                            that.illness2.number1 = that.BfInfo.secondjson[dataJosn.length - 1];
                            that.illness2.number2 = that.BfInfo.firstjson[dataJosn.length - 1];
                            that.illness2.number = that.BfInfo.thirdjson[dataJosn.length - 1];
                            that.illness2.number3 = that.BfInfo.fourthjson[dataJosn.length - 1];
                            that.illness2.number4 = that.BfInfo.fifthjson[dataJosn.length - 1];
                            that.illness2.number5 = that.BfInfo.seventhjson[dataJosn.length - 1];
                            that.illness2.number6 = that.BfInfo.sixthjson[dataJosn.length - 1];
                        }
                        // 渲染 echart 曲线图
                        var Chart = echarts.init(document.getElementById('chartbf'));
                        var select = {
                            'title': {
                                'text': '血脂(mmHg)',
                                'textStyle': {
                                    'color': '#b0b0b0',
                                    'fontStyle': 'normal',
                                    'fontWeight': 'lignter',
                                    'fontSize': 18
                                }
                            },
                            'tooltip': {
                                'trigger': 'axis',
                                formatter: function (params) {
                                    var str = ''
                                    for (var i = 0; i < params.length; i++) {
                                        if (params.length === '0') {
                                            str += ""
                                        } else {
                                            if (!params[i].data) {
                                                params[i].data = ""
                                            }
                                            str += params[i].marker + params[i].seriesName + ":" + params[i].data + "<br>"
                                        }
                                    }
                                    if (params.length === '0') {
                                        str += ""
                                    } else {
                                        params.push({
                                            time: params[0].axisValue
                                        })
                                        str += '检查时间' + ':' + params[params.length - 1].time
                                    }
                                    return str
                                }
                            },
                            'calculable': true,
                            'grid': {
                                'left': '3%',
                                'right': '7%',
                                'top': '10%',
                                'bottom': '5%',
                                'containLabel': true,
                                'y2': 50
                            },
                            'xAxis': [{
                                'type': 'category',
                                'data': that.BfInfo.data2,
                                'axisLabel': {
                                    'intreval': 'auto',
                                    'textStyle': {
                                        'color': 'black',
                                        'fontSize': '14'
                                    },
                                    'formatter': function (value) {
                                        return value.slice(0, 10)
                                    }
                                },
                                'splitLine': {
                                    'show': false
                                },
                                'axisLine': {
                                    'lineStyle': {
                                        'color': '#b6b6b6'
                                    }
                                },
                                'axisTick': {
                                    'show': false
                                }
                            }],
                            'yAxis': [
                                {
                                    'type': 'value',
                                    'axisLabel': {
                                        'intreval': 0,
                                        'textStyle': {
                                            'color': 'black',
                                            'fontSize': '16',
                                            'shadowOffset': -5
                                        }
                                    },
                                    'splitLine': {
                                        'show': false
                                    },
                                    'axisLabel': {
                                        formatter: function () {
                                            return "";
                                        }
                                    },
                                    'axisLine': {
                                        'lineStyle': {
                                            'color': '#b6b6b6'
                                        }
                                    },
                                    'axisTick': {
                                        'show': false
                                    }
                                },
                                {
                                    'type': 'value',
                                    'splitLine': {
                                        'show': false
                                    },
                                    'show': false,
                                    'axisLabel': {
                                        'intreval': 0,
                                        'textStyle': {
                                            'color': 'black',
                                            'fontSize': '16',
                                            'shadowOffset': -5
                                        }
                                    },
                                    'axisLabel': {
                                        formatter: function () {
                                            return "";
                                        }
                                    },
                                    'axisLine': {
                                        'lineStyle': {
                                            'color': '#b6b6b6'
                                        }
                                    },
                                    'axisTick': {
                                        'show': false
                                    }
                                }
                            ],
                            'series': [
                                {
                                    'name': 'TC(总胆固醇)',
                                    'type': 'line',
                                    'markLine': {
                                        'symbol': 'none',
                                        'symbolSize': [4, 2],
                                        'itemStyle': {
                                            'normal': {
                                                'lineStyle': {'color': 'red'},
                                                'barBorderColor': 'red',
                                                'label': {
                                                    'position': 'left',
                                                    'textStyle': {'color': 'black'}
                                                }
                                            }
                                        },
                                        'data': [
                                            {
                                                'yAxis': 5.72,
                                                'name': '5.72',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            }
                                        ]
                                    },
                                    'data': that.BfInfo.firstjson,
                                    'symbol': 'circle',
                                    'symbolSize': 18,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#00d2cb',
                                            'lineStyle': {
                                                'color': '#00d2cb'
                                            }
                                        }
                                    }
                                },
                                {
                                    'name': 'TG(三酰甘油)',
                                    'type': 'line',
                                    'markLine': {
                                        'symbol': 'none',
                                        'symbolSize': [4, 2],
                                        'itemStyle': {
                                            'normal': {
                                                'lineStyle': {'color': 'red'},
                                                'barBorderColor': 'red',
                                                'label': {
                                                    'position': 'left',
                                                    // formatter:function(params){
                                                    //     return 100;
                                                    // },
                                                    'textStyle': {'color': 'black'}
                                                }
                                            }
                                        },
                                        'data': [
                                            {
                                                'yAxis': 1.7,
                                                'name': '1.7',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            }
                                        ]
                                    },
                                    'data': that.BfInfo.secondjson,
                                    'symbol': 'circle',
                                    'symbolSize': 18,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#3a85ff',
                                            'lineStyle': {
                                                'color': '#3a85ff'
                                            }
                                        }
                                    }
                                },
                                {
                                    'name': 'HDL-C(高密度脂蛋白胆固醇)',
                                    'type': 'line',
                                    'markLine': {
                                        'symbol': 'none',
                                        'symbolSize': [4, 2],
                                        'itemStyle': {
                                            'normal': {
                                                'lineStyle': {'color': 'red'},
                                                'barBorderColor': 'red',
                                                'label': {
                                                    'position': 'left',
                                                    // formatter:function(params){
                                                    //     return 100;
                                                    // },
                                                    'textStyle': {'color': 'black'}
                                                }
                                            }
                                        },
                                        'data': [
                                            {
                                                'yAxis': 1.56,
                                                'name': '1.56',
                                                'itemStyle': {
                                                    'normal': {
                                                        'color': '#3a85ff'
                                                    }
                                                }
                                            }
                                        ]
                                    },
                                    'data': that.BfInfo.thirdjson,
                                    'symbol': 'circle',
                                    'symbolSize': 18,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#625bf7',
                                            'lineStyle': {
                                                'color': '#625bf7'
                                            }
                                        }
                                    }
                                },
                                {
                                    'name': 'LDL(低密度脂蛋白胆固醇)',
                                    'type': 'line',
                                    'data': that.BfInfo.fourthjson,
                                    'symbol': 'circle',
                                    'symbolSize': 18,
                                    'itemStyle': {
                                        'normal': {
                                            'color': '#2c88b8',
                                            'lineStyle': {
                                                'color': '#2c88b8'
                                            }
                                        }
                                    }
                                }
                            ]
                        };
                        Chart.setOption(select);
                        window.addEventListener("resize", function () {
                            Chart.resize();
                        })
                    }
                }
            })
        }
    })
    $(".P1NP").hover(function () {
        $('.P1NP_text').css('display', 'block')
    }, function () {
        $('.P1NP_text').css('display', 'none')
    });
    $(".ctx").hover(function () {
        $('.ctx_text').css('display', 'block')
    }, function () {
        $('.ctx_text').css('display', 'none')
    })
    $(".dlcs").hover(function () {
        $('.dlcs_text').css('display', 'block')
    }, function () {
        $('.dlcs_text').css('display', 'none')
    })
    $(".gmd").hover(function () {
        $('.gmd_text').css('display', 'block')
    }, function () {
        $('.gmd_text').css('display', 'none')
    })

    var href = decodeURI(decodeURI(location.search.split('?')[1]));
    var arr = href.split('&')[0]
    var idCard = arr.split('=')[1]
    var arr1 = href.split('&')[1]
    var diseasesType = arr1.split('=')[1]
    function add() {
        $.ajax({
            url: "${URL_SCREENING_GETBREADLINE}",
            dataType: 'json',
            type: 'post',
            success: function (data) {
                breadLine = JSON.parse(data.data);
                var url = ''
                if (diseasesType == '1') {
                    url = '${URL_ACCOMPANY_BPACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                } else if (diseasesType == '2') {
                    url = '${URL_ACCOMPANY_BSACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                } else if (diseasesType == '3') {
                    url = '${URL_ACCOMPANY_BFACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                } else if (diseasesType == '4') {
                    url = '${URL_ACCOMPANY_BLACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                } else {
                    url = ''
                }
                breadLine.push({
                    name: '随访详情',
                    href: url
                })
                $.ajax({
                    url: '${URL_SCREENING_SAVEBREADLINE}',
                    data: {
                        breadLine: JSON.stringify(breadLine)
                    },
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        var thenUrl = '';
                        if (diseasesType == '1') {
                            thenUrl = '${URL_ACCOMPANY_BPACCOMPANY}?idCard=' + idCard
                        } else if (diseasesType == '2') {
                            thenUrl = '${URL_ACCOMPANY_BSACCOMPANY}?idCard=' + idCard
                        } else if (diseasesType == '3') {
                            thenUrl = '${URL_ACCOMPANY_BFACCOMPANY}?idCard=' + idCard
                        } else if (diseasesType == '4') {
                            thenUrl = '${URL_ACCOMPANY_BLACCOMPANY}?idCard=' + idCard
                        } else {
                            thenUrl = ''
                        }
                        parent.showSrc(thenUrl + '&id=' + checkedArray)
                    }
                })
            }
        })
    }

    function updateInstr(obj) {
        var checkedArray = getCheckedArray();
        if (checkedArray.length != 1) {
            var str = '请勾选一条数据修改'
            window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
            return;
        } else {
            var href = location.search.split('?')[1];
            var idCard = href.split('&')[0].split('=')[1]
            $.ajax({
                url: "${URL_SCREENING_GETBREADLINE}",
                dataType: 'json',
                type: 'post',
                success: function (data) {
                    breadLine = JSON.parse(data.data)
                    var url = ''
                    if (diseasesType == '1') {
                        url = '${URL_ACCOMPANY_BPACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                    } else if (diseasesType == '2') {
                        url = '${URL_ACCOMPANY_BSACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                    } else if (diseasesType == '3') {
                        url = '${URL_ACCOMPANY_BFACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                    } else if (diseasesType == '4') {
                        url = '${URL_ACCOMPANY_BLACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                    } else {
                        url = ''
                    }
                    breadLine.push({
                        name: '随访详情',
                        href: url
                    })
                    $.ajax({
                        url: '${URL_SCREENING_SAVEBREADLINE}',
                        data: {
                            breadLine: JSON.stringify(breadLine)
                        },
                        dataType: 'json',
                        type: 'post',
                        success: function (data) {
                            var thenUrl = ''
                            if (diseasesType == '1') {
                                thenUrl = '${URL_ACCOMPANY_BPACCOMPANY}?idCard=' + idCard
                            } else if (diseasesType == '2') {
                                thenUrl = '${URL_ACCOMPANY_BSACCOMPANY}?idCard=' + idCard
                            } else if (diseasesType == '3') {
                                thenUrl = '${URL_ACCOMPANY_BFACCOMPANY}?idCard=' + idCard
                            } else if (diseasesType == '4') {
                                thenUrl = '${URL_ACCOMPANY_BLACCOMPANY}?idCard=' + idCard
                            } else {
                                thenUrl = ''
                            }
                            parent.showSrc(thenUrl + '&id=' + checkedArray)
                        }
                    })
                }
            })
        }
    }

    function deleteInstr() {
        var checkedArray = getCheckedArray();
        var ids = "";
        if (checkedArray.length == 0) {
            var str = '请勾选一条数据修改'
            window.parent.showNewModelIframe('${URL_COMMON_TOTIPS}?title=' + encodeURI(encodeURI(str)), 380, 220)
        } else {
            for (var i = 0; i < checkedArray.length; i++) {
                ids += checkedArray[i] + ",";
            }
            ids = ids.substring(0, ids.length - 1);
        }
        var r = confirm("确定要删除勾选的数据吗?");
        if (r == true) {
            $.ajax({
                url: '${URL_ACCOMPANY_DELETEBF}',//删除地址
                dataType: 'json',
                type: 'post',
                data: {
                    ids: ids
                },
                async: false, //默认为true 异步
                error: function () {
                    alert('error');
                },
                success: function (data) {

                    if (!data.success) {
                        alert("刪除失敗，失敗原因：" + data.msg);
                    }
                    refreshTable();
                }
            });
        }
    }

    function moreAccompany() {
        var goUrl = ''
        if (diseasesType == '1') {
            goUrl = '${URL_ACCOMPANY_BPACCOMPANYS}?idCard=' + idCard
        } else if (diseasesType == '2') {
            goUrl = '${URL_ACCOMPANY_BSACCOMPANYS}?idCard=' + idCard
        } else if (diseasesType == '3') {
            goUrl = '${URL_ACCOMPANY_BFACCOMPANYS}?idCard=' + idCard
        } else if (diseasesType == '4') {
            goUrl = '${URL_ACCOMPANY_BLACCOMPANYS}?idCard=' + idCard
        } else {
            goUrl = ''
        }
        $.ajax({
            url: "${URL_SCREENING_GETBREADLINE}",
            dataType: 'json',
            type: 'post',
            success: function (data) {
                breadLine = JSON.parse(data.data)
                var url = goUrl + '&id=' + '' + '&diseasesType=' + diseasesType + '&type=' + ''
                breadLine.push({
                    name: '随访信息',
                    href: url
                })
                $.ajax({
                    url: '${URL_SCREENING_SAVEBREADLINE}',
                    data: {
                        breadLine: JSON.stringify(breadLine)
                    },
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                        parent.showSrc(url)
                    }
                })
            }
        })
    }

    // 接口：根据身份证号，查询最近7天是否未测量过血压/血糖
    function queryNotTestDataSevenDays(idCard) {
        $.ajax({
            url: '${URL_PATIENT_QUERYNOTTESTDATASEVENDAYS}',
            dataType: 'json',
            type: 'post',
            data: {
                idCard: idCard
            },
            error: function () {
                alert('error');
            },
            success: function (data) {
                if (data.data.notTestBp) {
                    $('#bpRemark').text('您已一周未进行血压数据测量');
                    $('#bpRemark').css("color", "red");
                }
                if (data.data.notTestBg) {
                    $('#bgRemark').text('您已一周未进行血糖数据测量');
                    $('#bgRemark').css("color", "red");
                }
            }
        });
    }

    function moreSpecRemark() {
        var goUrl = ''
        goUrl = '${URL_ACCOMPANY_BPACCOMPANYS}?idCard=' + idCard
    }

    // 新增有药物的随访记录
    function addBlAccompanyWithMedical(){
        // 获取当前idcard
        var href = location.search.split('?')[1];
        var idCard = href.split('&')[0].split('=')[1]
        console.log(idCard)
        $.ajax({
            url:"${URL_SCREENING_GETBREADLINE}",
            dataType:'json',
            type:'post',
            success:function(data){
                breadLine = JSON.parse(data.data)
                var url = '${URL_ACCOMPANY_BLACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                breadLine.push({
                    name:'随访详情',
                    href:url
                })
                $.ajax({
                    url:'${URL_SCREENING_SAVEBREADLINE}',
                    data:{
                        breadLine:JSON.stringify(breadLine)
                    },
                    dataType:'json',
                    type:'post',
                    success:function(data){
                        parent.showSrc('${URL_ACCOMPANY_BLACCOMPANY}?idCard=' + idCard + '&id=' + '')
                    }
                })
            }
        })
    }

    // 新增无药物的随访记录
    function addNoMedical(){
        // 获取当前idcard
        var href = location.search.split('?')[1];
        var idCard = href.split('&')[0].split('=')[1]
        console.log(idCard)
        $.ajax({
            url:"${URL_SCREENING_GETBREADLINE}",
            dataType:'json',
            type:'post',
            success:function(data){
                breadLine = JSON.parse(data.data)
                var url = '${URL_ACCOMPANY_BL_NO_MEDICAL_ACCOMPANY}?idCard=' + idCard + '&change=' + '0'
                breadLine.push({
                    name:'无药物随访详情',
                    href:url
                });
                $.ajax({
                    url:'${URL_SCREENING_SAVEBREADLINE}',
                    data:{
                        breadLine:JSON.stringify(breadLine)
                    },
                    dataType:'json',
                    type:'post',
                    success:function(data){
                        parent.showSrc('${URL_ACCOMPANY_BL_NO_MEDICAL_ACCOMPANY}?idCard=' + idCard + '&id=' + '')
                    }
                })
            }
        })
    }

    $(function () {
        $('.addImg').click(function () {
            $('#file').click();
        });
        var x = 10;
        var y = 20;
        $(".addImg").mouseover(function (e) {
            if (vm.checkData.linePhoto == '') {
                return false
            }
            var tooltip = "<div id='tooltip'><img src='" + document.getElementById("linePhoto").src + "' style='max-width:100%;'/><\/div>"; //创建 div 元素
            $("body").append(tooltip);	//把它追加到文档中
            $("#tooltip")
                .css({
                    "top": (e.pageY) + "px",
                    "left": (e.pageX) + "px"
                }).show("fast");	  //设置x坐标和y坐标，并且显示
        }).mouseout(function () {
            $("#tooltip").remove();	 //移除
        }).mousemove(function (e) {
            $("#tooltip")
                .css({
                    "top": (e.pageY + y) + "px",
                    "left": (e.pageX + x) + "px"
                });
        });
        $("#file").change(function () {
            //创建blob对象，浏览器将文件放入内存中，并生成标识
            var img_src = URL.createObjectURL($(this)[0].files[0]);
            let teacherImg = $(this).val();
            let teacherImgfile = getFileType(teacherImg);
            if (teacherImgfile != "bmp" && teacherImgfile != "png" && teacherImgfile != "gif" && teacherImgfile != "jpg" && teacherImgfile != "jpeg") {
                alert('请选择图片格式的文件！')
                $("#filed").val("")
                return;
            }
            //给img标检的src赋值
//            document.getElementById("linePhoto").src=img_src;
            var formData = new FormData();
            formData.append('file', $("#file")[0].files[0]);
            // 提交
            $.ajax({
                url: '${URL_FILE_UPLOADVERSION}',
                processData: false,
                contentType: false,
                data: formData,
                type: 'post',
                dataType: 'json',
                success: function (data) {
                    vm.checkData.linePhoto = data.data
                }
            })
        });
    });

    function getFileType(filePath) {
        var startIndex = filePath.lastIndexOf(".");
        if (startIndex != -1)
            return filePath.substring(startIndex + 1, filePath.length).toLowerCase();
        else return "";
    }
</script>
</body>
</html>
